diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-20 13:04:41 -0500 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-20 13:04:41 -0500 |
commit | 996076cf151a27a7a8d278aa4d15b28cfb196c46 (patch) | |
tree | 96a2fdcf3fd5a22394313d140cacc0257a821543 /src/game.cpp | |
parent | ee802c01d3008e6019bc55a02fcc2e6d68b288d1 (diff) | |
download | tanetane-996076cf151a27a7a8d278aa4d15b28cfb196c46.tar.gz tanetane-996076cf151a27a7a8d278aa4d15b28cfb196c46.tar.bz2 tanetane-996076cf151a27a7a8d278aa4d15b28cfb196c46.zip |
Added a randomly wandering Ionia to the map
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp index dbd314a..729e665 100644 --- a/src/game.cpp +++ b/src/game.cpp | |||
@@ -62,6 +62,10 @@ void Game::loadMap(std::string filename) { | |||
62 | getSprite(spriteId).hasShadow = p.shadow; | 62 | getSprite(spriteId).hasShadow = p.shadow; |
63 | } | 63 | } |
64 | getSprite(spriteId).interactionScript = p.interactionScript; | 64 | getSprite(spriteId).interactionScript = p.interactionScript; |
65 | if (p.wander) { | ||
66 | getSystem<CharacterSystem>().initSprite(spriteId); | ||
67 | getSprite(spriteId).wander = true; | ||
68 | } | ||
65 | } | 69 | } |
66 | 70 | ||
67 | for (const Trigger& t : map_->getTriggers()) { | 71 | for (const Trigger& t : map_->getTriggers()) { |