From 44e5d8bcb7fea443ca9ed3844454b11ac6e4dbed Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 10 Nov 2013 14:53:33 +0300 Subject: add support for item particles. For this used particlefx tag in items.xml --- src/game.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/game.cpp') 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") } -- cgit v1.2.3-70-g09d2