]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix spawned monsters with blank names
authorMario <mario.mario@y7mail.com>
Wed, 23 Jan 2013 09:55:36 +0000 (20:55 +1100)
committerMario <mario.mario@y7mail.com>
Wed, 23 Jan 2013 09:55:36 +0000 (20:55 +1100)
qcsrc/server/command/cmd.qc

index 905a595774a581b399344789a5f8a7ce74bd5b9c..b4048a721d8923f96ca2beabfa5df8d980aa033e 100644 (file)
@@ -217,9 +217,9 @@ void ClientCommand_mobspawn(float request, float argc)
                                WarpZone_TraceLine(self.origin + self.view_ofs, self.origin + self.view_ofs + v_forward * 100, MOVE_NORMAL, self);
                        
                                e = spawnmonster(tospawn, self, self, trace_endpos, FALSE, moveflag);
-                               e.netname = mname;
+                               if(mname != "") e.netname = strzone(mname);
                        
-                               sprint(self, sprintf("Spawned 1 %s\n", tospawn));
+                               sprint(self, strcat("Spawned 1 ", tospawn, "\n"));
                        }
                        
                        return;