summaryrefslogtreecommitdiff
path: root/src/commands.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands.cpp')
-rw-r--r--src/commands.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/commands.cpp b/src/commands.cpp
index 51ce93f85..e92d79eaf 100644
--- a/src/commands.cpp
+++ b/src/commands.cpp
@@ -84,6 +84,7 @@
#include "utils/delete2.h"
#include "utils/gettext.h"
+#include "utils/mathutils.h"
#include "utils/process.h"
#include "utils/timer.h"
@@ -1540,7 +1541,15 @@ impHandler0(dumpOGL)
impHandler0(debugSpawn)
{
- Being *const being = actorManager->cloneBeing(localPlayer);
+ int cnt = atoi(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);
+ }
}
void replaceVars(std::string &str)