Skip to content

Commit

Permalink
fix typo in Threat Level
Browse files Browse the repository at this point in the history
  • Loading branch information
fallahn committed Aug 3, 2023
1 parent 293a1b6 commit c69ffcb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion samples/threat_level/src/PlayerDirector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ void PlayerDirector::handleMessage(const cro::Message& msg)
{
pi.state = PlayerInfo::State::Dead;

entity.getComponent<cro::Transform>().setRotation(cro::Transform::QUAT_IDENTY);
entity.getComponent<cro::Transform>().setRotation(cro::Transform::QUAT_IDENTITY);
entity.getComponent<cro::Transform>().setPosition({ -15.4f, 0.f, -9.3f });
entity.getComponent<Velocity>().velocity = glm::vec3();
entity.getComponent<cro::ParticleEmitter>().stop();
Expand Down
2 changes: 1 addition & 1 deletion samples/threat_level/src/PlayerSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ void PlayerSystem::updateDying(cro::Entity entity, float dt)
if (tx.getWorldPosition().y < -3.f)
{
tx.setPosition(initialPosition);
tx.setRotation(cro::Transform::QUAT_IDENTY);
tx.setRotation(cro::Transform::QUAT_IDENTITY);
entity.getComponent<Velocity>().velocity = glm::vec3(0.f);
entity.getComponent<PlayerInfo>().state = PlayerInfo::State::Dead;
m_respawnTime = 1.f;
Expand Down

0 comments on commit c69ffcb

Please sign in to comment.