]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix a duplicate variable name
authorRudolf Polzer <divverent@xonotic.org>
Sun, 18 Sep 2011 15:31:02 +0000 (17:31 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Sun, 18 Sep 2011 15:31:02 +0000 (17:31 +0200)
qcsrc/server/bot/scripting.qc

index 485433e1dc27378dc4583fa1fcbf70fcc3c6224d..665b23c85a00c758e58c2103355b918e39161be1 100644 (file)
@@ -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;