From cf8462819961ff010061ae862fa2602a812872c8 Mon Sep 17 00:00:00 2001 From: Mario Date: Tue, 14 Jul 2020 20:41:15 +1000 Subject: [PATCH] Fix racer being able to fire rockets before the round has started --- qcsrc/common/vehicles/vehicle/racer.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/common/vehicles/vehicle/racer.qc b/qcsrc/common/vehicles/vehicle/racer.qc index e59184dc8..a0e35e02e 100644 --- a/qcsrc/common/vehicles/vehicle/racer.qc +++ b/qcsrc/common/vehicles/vehicle/racer.qc @@ -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)) { -- 2.39.2