summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-11-10 14:53:33 +0300
committerAndrei Karas <akaras@inbox.ru>2013-11-10 15:41:25 +0300
commit44e5d8bcb7fea443ca9ed3844454b11ac6e4dbed (patch)
tree1af016870cd47c00e860673d1710b0b98a3bf101 /src/game.cpp
parente5f83f094dd658163150ea2a41c5d4a67f21019c (diff)
downloadplus-44e5d8bcb7fea443ca9ed3844454b11ac6e4dbed.tar.gz
plus-44e5d8bcb7fea443ca9ed3844454b11ac6e4dbed.tar.bz2
plus-44e5d8bcb7fea443ca9ed3844454b11ac6e4dbed.tar.xz
plus-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.cpp5
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")
}