summary refs log tree commit diff stats
path: root/src/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game.cpp b/src/game.cpp index 530068c..dc3a5ba 100644 --- a/src/game.cpp +++ b/src/game.cpp
@@ -13,13 +13,13 @@ int Game::emplaceSprite(std::string alias) {
13} 13}
14 14
15void Game::clearSprites() { 15void Game::clearSprites() {
16 sprites_.clear();
17 spriteIds_.clear();
18 spritesByAlias_.clear();
19
20 for (std::unique_ptr<System>& system : systems_) { 16 for (std::unique_ptr<System>& system : systems_) {
21 system->clearSpriteCache(); 17 system->clearSpriteCache();
22 } 18 }
19
20 sprites_.clear();
21 spriteIds_.clear();
22 spritesByAlias_.clear();
23} 23}
24 24
25void Game::loadMap(std::string filename, std::string warpPoint) { 25void Game::loadMap(std::string filename, std::string warpPoint) {