From 12adabfffe519b5c30cfcdcef9e253953709b850 Mon Sep 17 00:00:00 2001 From: Mario Date: Sat, 21 Dec 2013 05:47:02 +1100 Subject: [PATCH] Remove some leftovers from the old random monster spawn code --- qcsrc/server/command/cmd.qc | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/qcsrc/server/command/cmd.qc b/qcsrc/server/command/cmd.qc index 404e514e4..56b83fee9 100644 --- a/qcsrc/server/command/cmd.qc +++ b/qcsrc/server/command/cmd.qc @@ -256,7 +256,7 @@ void ClientCommand_mobspawn(float request, float argc) { entity e; string tospawn; - float moveflag, i; + float moveflag; moveflag = (argv(2) ? stof(argv(2)) : 1); // follow owner if not defined tospawn = strtolower(argv(1)); @@ -267,15 +267,6 @@ void ClientCommand_mobspawn(float request, float argc) return; } - if(tospawn == "random") - { - RandomSelection_Init(); - for(i = MON_FIRST; i <= MON_LAST; ++i) - RandomSelection_Add(world, 0, (get_monsterinfo(i)).netname, 1, 1); - - tospawn = RandomSelection_chosen_string; - } - if(autocvar_g_monsters_max <= 0 || autocvar_g_monsters_max_perplayer <= 0) { sprint(self, "Monster spawning is disabled.\n"); } else if(!IS_PLAYER(self)) { sprint(self, "You can't spawn monsters while spectating.\n"); } else if(g_invasion) { sprint(self, "You can't spawn monsters during an invasion!\n"); } -- 2.39.2