]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
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 e59184dc8274b32ca93e308d0a743c4518776872..a0e35e02ee37a9a7a44f948901c77ab3ba406032 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))
        {