diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-11-10 14:53:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-11-10 15:41:25 +0300 |
commit | 44e5d8bcb7fea443ca9ed3844454b11ac6e4dbed (patch) | |
tree | 1af016870cd47c00e860673d1710b0b98a3bf101 /src/game.cpp | |
parent | e5f83f094dd658163150ea2a41c5d4a67f21019c (diff) | |
download | manaplus-44e5d8bcb7fea443ca9ed3844454b11ac6e4dbed.tar.gz manaplus-44e5d8bcb7fea443ca9ed3844454b11ac6e4dbed.tar.bz2 manaplus-44e5d8bcb7fea443ca9ed3844454b11ac6e4dbed.tar.xz manaplus-44e5d8bcb7fea443ca9ed3844454b11ac6e4dbed.zip |
add support for item particles.
For this used particlefx tag in items.xml
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp index 80d27a4a1..5766f724f 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -1013,6 +1013,7 @@ void Game::changeMap(const std::string &mapPath) if (newMap) newMap->initializeParticleEffects(particleEngine); + // Start playing new music file when necessary const std::string oldMusic = mCurrentMap ? mCurrentMap->getMusicFile() : ""; @@ -1038,6 +1039,10 @@ void Game::changeMap(const std::string &mapPath) if (mumbleManager) mumbleManager->setMap(mapPath); #endif + + if (player_node) + player_node->recreateItemParticles(); + Net::getGameHandler()->mapLoadedEvent(); BLOCK_END("Game::changeMap") } |