]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix case sensitive monster type in mobspawn command
authorMario <mario.mario@y7mail.com>
Mon, 22 Apr 2013 14:38:59 +0000 (00:38 +1000)
committerMario <mario.mario@y7mail.com>
Mon, 22 Apr 2013 14:38:59 +0000 (00:38 +1000)
qcsrc/server/command/cmd.qc

index 35bb12cbb7a086ecc255f0a9b8d0c1507d25ff4c..73998ef767c90fe77296417c6d99e32828d96f60 100644 (file)
@@ -265,7 +265,7 @@ void ClientCommand_mobspawn(float request, float argc)
                        float moveflag;
                        
                        moveflag = (argv(2) ? stof(argv(2)) : 1); // follow owner if not defined
-                       tospawn = argv(1);
+                       tospawn = strtolower(argv(1));
                        mname = argv(3);
                        
                        if(tospawn == "list")