X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;ds=sidebyside;f=qcsrc%2Fserver%2Fround_handler.qc;h=786635af07e4b145383f91ea9d2d325b8670a3d1;hb=c4b22916000f124ade94977e91f4fa2cc125d0c7;hp=d060d2cca859590ce3ee92e1966daca1f1464e83;hpb=8f08a117d2eada0c38cb1d07a0798daf192dd666;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/round_handler.qc b/qcsrc/server/round_handler.qc index d060d2cca..786635af0 100644 --- a/qcsrc/server/round_handler.qc +++ b/qcsrc/server/round_handler.qc @@ -1,26 +1,26 @@ #include "round_handler.qh" +#include "campaign.qh" #include "command/vote.qh" #include "../common/util.qh" void round_handler_Think(entity this) { - if (time < game_starttime) + if (intermission_running) { - round_handler_Reset(game_starttime); + round_handler_Reset(0); + round_handler_Remove(); return; } - if (gameover) - gameover = false; - - if (intermission_running) + if (time < game_starttime) { - round_handler_Reset(0); - round_handler_Remove(); + round_handler_Reset(game_starttime); return; } + game_stopped = false; + if (this.wait) { this.wait = false; @@ -31,7 +31,7 @@ void round_handler_Think(entity this) if (this.cnt > 0) // countdown running { - if (this.canRoundStart()) + if (this.canRoundStart() && !(autocvar_g_campaign && !campaign_bots_may_start)) { if (this.cnt == this.count + 1) round_starttime = time + this.count; int f = this.cnt - 1; @@ -58,7 +58,6 @@ void round_handler_Think(entity this) // schedule a new round this.wait = true; this.nextthink = time + this.delay; - gameover = true; } else {