From 8f173afdd496eda7fddd2b166e11626651600501 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 27 Aug 2014 16:49:12 +0300 Subject: Move chat command /debugspawn into actions. --- src/commands.cpp | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'src/commands.cpp') diff --git a/src/commands.cpp b/src/commands.cpp index d6183b42b..ac854bc39 100644 --- a/src/commands.cpp +++ b/src/commands.cpp @@ -159,20 +159,6 @@ static void uploadFile(const std::string &str, upload->start(); } -impHandler0(debugSpawn) -{ - int cnt = atoi(event.args.c_str()); - if (cnt < 1) - cnt = 1; - const int half = cnt / 2; - for (int x = -half; x < cnt - half; x ++) - { - for (int y = -half; y < cnt - half; y ++) - actorManager->cloneBeing(localPlayer, x, y, cnt); - } - return true; -} - void replaceVars(std::string &str) { if (!localPlayer || !actorManager) -- cgit v1.2.3-70-g09d2