]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Forbid impulses when round is over
authorterencehill <piuntn@gmail.com>
Wed, 13 Feb 2013 23:24:57 +0000 (00:24 +0100)
committerterencehill <piuntn@gmail.com>
Wed, 13 Feb 2013 23:24:57 +0000 (00:24 +0100)
qcsrc/server/cl_impulse.qc

index 529567a3b407cc7118590aa59c451fb3444798ac..09ed68993ca4db9a4f28679ea590379ce42287c6 100644 (file)
@@ -46,6 +46,10 @@ 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())
+               return;
+
        if (timeout_status == TIMEOUT_ACTIVE) //don't allow any impulses while the game is paused
                return;