From: Rudolf Polzer Date: Sun, 18 Sep 2011 15:31:02 +0000 (+0200) Subject: fix a duplicate variable name X-Git-Tag: xonotic-v0.6.0~40^2~130 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b5d6f12dc3e152bb310dfebc9273c1a6a93eceb6;p=xonotic%2Fxonotic-data.pk3dir.git fix a duplicate variable name --- diff --git a/qcsrc/server/bot/scripting.qc b/qcsrc/server/bot/scripting.qc index 485433e1d..665b23c85 100644 --- a/qcsrc/server/bot/scripting.qc +++ b/qcsrc/server/bot/scripting.qc @@ -27,20 +27,20 @@ void bot_queuecommand(entity bot, string cmdstring) { float sp; string parm; - string cmdstring; + string cmdstr; - sp = strstrofs(cmdstring, " ", 0); + sp = strstrofs(cmdstr, " ", 0); if(sp < 0) { parm = ""; } else { - parm = substring(cmdstring, sp + 1, -1); - cmdstring = substring(cmdstring, 0, sp); + parm = substring(cmdstr, sp + 1, -1); + cmdstr = substring(cmdstr, 0, sp); } - if(cmdstring == "sound") - precache_sound(cmdstring); + if(cmdstr == "sound") + precache_sound(cmdstr); } bot.bot_cmdqueuebuf_end += 1;