]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix compile bug
authorSamual <samual@xonotic.org>
Fri, 11 Nov 2011 18:17:00 +0000 (13:17 -0500)
committerSamual <samual@xonotic.org>
Fri, 11 Nov 2011 18:17:00 +0000 (13:17 -0500)
qcsrc/client/gamecommand.qc

index 0ee13f06f2511d5c1dd1170146aa4cb6dfb24f36..f499bb7c5c04be499b965589bb291a2dd40ede76 100644 (file)
@@ -73,24 +73,24 @@ entity debug_shotorg;
 //  Misc. Supporting Functions
 // ============================
 
-float cvar_clientsettemp(string cvar, string value)
+float cvar_clientsettemp(string tmp_cvar, string value)
 {
        entity e;
        
        for(e = world; (e = find(e, classname, "saved_cvar_value")); )
-               if(e.netname == cvar)
+               if(e.netname == tmp_cvar)
                        goto saved;
                        
        // creating a new entity to keep track of this cvar
        e = spawn();
        e.classname = "saved_cvar_value";
-       e.netname = strzone(cvar);
-       e.message = strzone(cvar_string(cvar));
+       e.netname = strzone(tmp_cvar);
+       e.message = strzone(cvar_string(tmp_cvar));
        return TRUE;
        
        // an entity for this cvar already exists, update the value
        :saved
-       cvar_set(cvar, value);
+       cvar_set(tmp_cvar, value);
        return FALSE;
 }