]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't retry next frame (was breaking some impulses when re-spawning)
authorMario <mario@smbclan.net>
Wed, 4 Nov 2015 01:22:27 +0000 (11:22 +1000)
committerMario <mario@smbclan.net>
Wed, 4 Nov 2015 01:22:27 +0000 (11:22 +1000)
qcsrc/server/cl_impulse.qc

index 8b36e17531c6a221d70d8ca2fa088b12b29c5f00..9b4e61eed62b286c3ad5e82dd0ce26321e4a3fea 100644 (file)
@@ -145,8 +145,8 @@ void ImpulseCommands (void)
                                        break;
                        }
                }
-               else
-                       self.impulse = imp; // retry in next frame
+               //else
+                       //self.impulse = imp; // retry in next frame
        }
        else if(imp == 21)
        {
@@ -162,16 +162,16 @@ void ImpulseCommands (void)
                        m = (imp - (210 + i)); // <0 for prev, =0 for best, >0 for next
                        W_CycleWeapon(self.(cvar_cl_weaponpriorities[i]), m);
                }
-               else
-                       self.impulse = imp; // retry in next frame
+               //else
+                       //self.impulse = imp; // retry in next frame
        }
        else if(imp >= WEP_IMPULSE_BEGIN && imp <= WEP_IMPULSE_END)
        {
                if(!self.vehicle)
                if(self.deadflag == DEAD_NO)
                        W_SwitchWeapon (imp - WEP_IMPULSE_BEGIN + WEP_FIRST);
-               else
-                       self.impulse = imp; // retry in next frame
+               //else
+                       //self.impulse = imp; // retry in next frame
        }
        // deploy waypoints
        else if (imp >= 30 && imp <= 49)