diff options
Diffstat (limited to 'src/net/manaserv/playerhandler.cpp')
-rw-r--r-- | src/net/manaserv/playerhandler.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/net/manaserv/playerhandler.cpp b/src/net/manaserv/playerhandler.cpp index f6207800..2347fee2 100644 --- a/src/net/manaserv/playerhandler.cpp +++ b/src/net/manaserv/playerhandler.cpp @@ -29,6 +29,7 @@ #include "log.h" #include "particle.h" #include "npc.h" +#include "configuration.h" #include "gui/chat.h" #include "gui/gui.h" @@ -141,7 +142,10 @@ void PlayerHandler::handleMessage(Net::MessageIn &msg) player_node->setLevel(msg.readInt16()); player_node->setCharacterPoints(msg.readInt16()); player_node->setCorrectionPoints(msg.readInt16()); - Particle* effect = particleEngine->addEffect("graphics/particles/levelup.particle.xml", 0, 0); + Particle* effect = particleEngine->addEffect( + paths.getValue("particles", "graphics/particles/") + + paths.getValue("levelUpEffectFile", "levelup.particle.xml"), + 0, 0); player_node->controlParticle(effect); } break; |