From: Mario Date: Wed, 23 Jan 2013 09:55:36 +0000 (+1100) Subject: Fix spawned monsters with blank names X-Git-Tag: xonotic-v0.8.0~241^2^2~577 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f66217723ccd04f036d4760dc3d0745288de1a23;p=xonotic%2Fxonotic-data.pk3dir.git Fix spawned monsters with blank names --- diff --git a/qcsrc/server/command/cmd.qc b/qcsrc/server/command/cmd.qc index 905a59577..b4048a721 100644 --- a/qcsrc/server/command/cmd.qc +++ b/qcsrc/server/command/cmd.qc @@ -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;