]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/cl_impulse.qc
Fix 2x accuracy bug for stats
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / cl_impulse.qc
index 9e662bb848e204b1a5b59dcd283424247d396951..987e07c46f228b892e9741c3c4b75e00a5571968 100644 (file)
@@ -46,9 +46,15 @@ void ImpulseCommands (void)
                return;
        self.impulse = 0;
 
-       if (timeoutStatus == 2) //don't allow any impulses while the game is paused
+       if (timeout_status == TIMEOUT_ACTIVE) //don't allow any impulses while the game is paused
                return;
-
+    
+    if(self.vehicle)
+        if(self.vehicle.deadflag == DEAD_NO)
+            if(self.vehicle.vehicles_impusle)
+                if(self.vehicle.vehicles_impusle(imp))
+                    return;
+    
        if(CheatImpulse(imp))
        {
        }