X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fround_handler.qc;h=ae64e74e4909d66882ea09e261926086977b4da0;hb=1a449baedb86a8f9b62f5af5e28683dba2a7998c;hp=cbfc7c79d8c6b4411a78fc6137d55c168815afc3;hpb=2cee5d0c7a381f6a01fe020f43af6f4b83203329;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/round_handler.qc b/qcsrc/server/round_handler.qc index cbfc7c79d..ae64e74e4 100644 --- a/qcsrc/server/round_handler.qc +++ b/qcsrc/server/round_handler.qc @@ -1,5 +1,7 @@ #include "round_handler.qh" +#include +#include #include "campaign.qh" #include "command/vote.qh" #include "../common/util.qh" @@ -19,8 +21,7 @@ void round_handler_Think(entity this) return; } - if (game_stopped) - game_stopped = false; + game_stopped = false; if (this.wait) { @@ -59,7 +60,6 @@ void round_handler_Think(entity this) // schedule a new round this.wait = true; this.nextthink = time + this.delay; - game_stopped = true; } else { @@ -78,7 +78,7 @@ void round_handler_Init(float the_delay, float the_count, float the_round_timeli } // NOTE: this is only needed because if round_handler spawns at time 1 -// gamestarttime isn't initialized yet +// game_starttime isn't initialized yet void round_handler_FirstThink(entity this) { round_starttime = max(time, game_starttime) + this.count;