From 49f27fffbe07e66a3047812a838f03d7636cc4a9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 1 Jun 2013 18:45:31 +0300 Subject: 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. --- src/commands.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/commands.cpp') 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 -- cgit v1.2.3-70-g09d2