Fix racer being able to fire rockets before the round has started
authorMario <mario.mario@y7mail.com>
Tue, 14 Jul 2020 10:41:15 +0000 (20:41 +1000)
committerMario <mario.mario@y7mail.com>
Tue, 14 Jul 2020 10:41:15 +0000 (20:41 +1000)
qcsrc/common/vehicles/vehicle/racer.qc

index e59184d..a0e35e0 100644 (file)
@@ -324,7 +324,7 @@ bool racer_frame(entity this, float dt)
                }
        }
 
-       if(!weaponLocked(player))
+       if (!weaponLocked(player) && !weaponUseForbidden(player))
        if(time > vehic.delay)
        if(PHYS_INPUT_BUTTON_ATCK2(player))
        {