diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-06-01 18:45:31 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-06-01 18:45:31 +0300 |
commit | 49f27fffbe07e66a3047812a838f03d7636cc4a9 (patch) | |
tree | 68996fa1dfc002e239513af1a92d1ffd69539204 /src/commands.cpp | |
parent | 69108c8a2892cf87a3d425b5e82e0eadbb5f7fa9 (diff) | |
download | manaverse-49f27fffbe07e66a3047812a838f03d7636cc4a9.tar.gz manaverse-49f27fffbe07e66a3047812a838f03d7636cc4a9.tar.bz2 manaverse-49f27fffbe07e66a3047812a838f03d7636cc4a9.tar.xz manaverse-49f27fffbe07e66a3047812a838f03d7636cc4a9.zip |
Add chat command /testparticle for testing particle effects on player.
Command: /testparticle particle.xml - set particle effect on player.
/testparticle - remove particle effect.
Each second it check for particle file update and reloading it if need.
Diffstat (limited to 'src/commands.cpp')
-rw-r--r-- | src/commands.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/commands.cpp b/src/commands.cpp index da771ede4..3d30e2169 100644 --- a/src/commands.cpp +++ b/src/commands.cpp @@ -1192,6 +1192,12 @@ impHandler2(enableAway) chatWindow->saveState(); } +impHandler1(testParticle) +{ + if (player_node) + player_node->setTestParticle(args); +} + impHandler0(testsdlfont) { #if defined USE_OPENGL && defined DEBUG_SDLFONT |