diff options
| -rw-r--r-- | src/character_system.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
| diff --git a/src/character_system.cpp b/src/character_system.cpp index d5aaf81..8a2034a 100644 --- a/src/character_system.cpp +++ b/src/character_system.cpp | |||
| @@ -128,10 +128,6 @@ void CharacterSystem::tick(double dt) { | |||
| 128 | speed *= 2; | 128 | speed *= 2; |
| 129 | } | 129 | } |
| 130 | 130 | ||
| 131 | if (sprite.characterMedium == CharacterMedium::Ladder) { | ||
| 132 | //game_.getSystem<AnimationSystem>().advanceAnimation(spriteId); | ||
| 133 | } | ||
| 134 | |||
| 135 | pLoc += (unitVecInDirection(sprite.movementDir) * speed); | 131 | pLoc += (unitVecInDirection(sprite.movementDir) * speed); |
| 136 | 132 | ||
| 137 | // Check collision. | 133 | // Check collision. |
| @@ -191,10 +187,6 @@ void CharacterSystem::tick(double dt) { | |||
| 191 | 187 | ||
| 192 | for (int followerId : sprite.followers) { | 188 | for (int followerId : sprite.followers) { |
| 193 | Sprite& pNext = game_.getSprite(followerId); | 189 | Sprite& pNext = game_.getSprite(followerId); |
| 194 | if (pNext.characterMedium == CharacterMedium::Ladder) { | ||
| 195 | //game_.getSystem<AnimationSystem>().advanceAnimation(followerId); | ||
| 196 | } | ||
| 197 | |||
| 198 | const Movement& posdir = pNext.trail.front(); | 190 | const Movement& posdir = pNext.trail.front(); |
| 199 | game_.getSystem<TransformSystem>().moveSprite(followerId, posdir.pos); | 191 | game_.getSystem<TransformSystem>().moveSprite(followerId, posdir.pos); |
| 200 | game_.getSystem<AnimationSystem>().setSpriteDirection(followerId, posdir.dir); | 192 | game_.getSystem<AnimationSystem>().setSpriteDirection(followerId, posdir.dir); |
