]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Remove some leftovers from the old random monster spawn code
authorMario <mario.mario@y7mail.com>
Fri, 20 Dec 2013 18:47:02 +0000 (05:47 +1100)
committerMario <mario.mario@y7mail.com>
Fri, 20 Dec 2013 18:47:02 +0000 (05:47 +1100)
qcsrc/server/command/cmd.qc

index 404e514e46ad9af6e3c4b25fe4d53cba71528f68..56b83fee99e519e4d4de28f6231f3858d007830b 100644 (file)
@@ -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"); }