Fix players not blocked and not able to vote when a CA match ends. It fixes #1849
authorterencehill <piuntn@gmail.com>
Sat, 7 Jan 2017 13:39:15 +0000 (14:39 +0100)
committerterencehill <piuntn@gmail.com>
Sat, 7 Jan 2017 13:39:15 +0000 (14:39 +0100)
qcsrc/server/round_handler.qc

index 6a18a6b..cbfc7c7 100644 (file)
@@ -6,6 +6,13 @@
 
 void round_handler_Think(entity this)
 {
+       if (intermission_running)
+       {
+               round_handler_Reset(0);
+               round_handler_Remove();
+               return;
+       }
+
        if (time < game_starttime)
        {
                round_handler_Reset(game_starttime);
@@ -15,13 +22,6 @@ void round_handler_Think(entity this)
        if (game_stopped)
                game_stopped = false;
 
-       if (intermission_running)
-       {
-               round_handler_Reset(0);
-               round_handler_Remove();
-               return;
-       }
-
        if (this.wait)
        {
                this.wait = false;