diff options
Diffstat (limited to 'src/game.cpp')
| -rw-r--r-- | src/game.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
| diff --git a/src/game.cpp b/src/game.cpp index 2a4308f..af66068 100644 --- a/src/game.cpp +++ b/src/game.cpp | |||
| @@ -60,6 +60,9 @@ void Game::loadMap(std::string filename) { | |||
| 60 | if (!p.animationFilename.empty()) { | 60 | if (!p.animationFilename.empty()) { |
| 61 | getSystem<AnimationSystem>().initSprite(spriteId, p.animationFilename); | 61 | getSystem<AnimationSystem>().initSprite(spriteId, p.animationFilename); |
| 62 | getSprite(spriteId).normallyHasShadow = p.shadow; | 62 | getSprite(spriteId).normallyHasShadow = p.shadow; |
| 63 | if (!p.animName.empty()) { | ||
| 64 | getSystem<AnimationSystem>().setSpriteAnimation(spriteId, p.animName); | ||
| 65 | } | ||
| 63 | } | 66 | } |
| 64 | getSprite(spriteId).interactionScript = p.interactionScript; | 67 | getSprite(spriteId).interactionScript = p.interactionScript; |
| 65 | if (p.movementSpeed != -1) { | 68 | if (p.movementSpeed != -1) { |
