]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/cl_impulse.qc
Forbid impulses even during the countdown to round start, it fixes issues with weapons
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / cl_impulse.qc
index 529567a3b407cc7118590aa59c451fb3444798ac..d09c0704fe56dbc2536a52a74df8a93381318560 100644 (file)
@@ -46,6 +46,10 @@ void ImpulseCommands (void)
                return;
        self.impulse = 0;
 
+       // forbid impulses when not in round time
+       if(round_handler_IsActive() && !round_handler_IsRoundStarted())
+               return;
+
        if (timeout_status == TIMEOUT_ACTIVE) //don't allow any impulses while the game is paused
                return;