From 4effe126d5b04d7e8572f8d785735a66150aa4ee Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Wed, 24 Feb 2021 21:30:59 -0500 Subject: Ionia is in the water! --- src/game.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/game.cpp') 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) { if (!p.animationFilename.empty()) { getSystem().initSprite(spriteId, p.animationFilename); getSprite(spriteId).normallyHasShadow = p.shadow; + if (!p.animName.empty()) { + getSystem().setSpriteAnimation(spriteId, p.animName); + } } getSprite(spriteId).interactionScript = p.interactionScript; if (p.movementSpeed != -1) { -- cgit 1.4.1