From: Mario Date: Tue, 14 Jul 2020 10:41:15 +0000 (+1000) Subject: Fix racer being able to fire rockets before the round has started X-Git-Tag: xonotic-v0.8.5~871 X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=commitdiff_plain;h=cf8462819961ff010061ae862fa2602a812872c8 Fix racer being able to fire rockets before the round has started --- 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)) {