]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Forbid impulses even during the countdown to round start, it fixes issues with weapons
authorterencehill <piuntn@gmail.com>
Thu, 25 Apr 2013 14:28:48 +0000 (16:28 +0200)
committerterencehill <piuntn@gmail.com>
Thu, 25 Apr 2013 14:28:48 +0000 (16:28 +0200)
qcsrc/server/cl_impulse.qc

index 09ed68993ca4db9a4f28679ea590379ce42287c6..d09c0704fe56dbc2536a52a74df8a93381318560 100644 (file)
@@ -46,8 +46,8 @@ void ImpulseCommands (void)
                return;
        self.impulse = 0;
 
-       // forbid impulses when round is over (but not during the countdown to round start)
-       if(round_handler_IsActive() && round_handler_AwaitingNextRound())
+       // 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