X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Fcommand%2Fvote.qc;h=44b8acb8e7a8ff5fb9ea7e18688e269b3bd66be9;hp=c1b31d38c6fe1bf8ac4e9d6a74a22c2a74376247;hb=429e52163f53e75b848135f076b77c4eb43935ac;hpb=ff024dad9985f1adf868547dbbcefdcaadbe9d1c diff --git a/qcsrc/server/command/vote.qc b/qcsrc/server/command/vote.qc index c1b31d38c6..44b8acb8e7 100644 --- a/qcsrc/server/command/vote.qc +++ b/qcsrc/server/command/vote.qc @@ -13,6 +13,7 @@ #include "../mutators/_mod.qh" #include +#include #include #include #include @@ -333,7 +334,13 @@ void VoteThink() // Resets the state of all clients, items, weapons, waypoints, ... of the map. void reset_map(bool dorespawn) { - if (time <= game_starttime && round_handler_IsActive()) round_handler_Reset(game_starttime); + if (time <= game_starttime) + { + if (gameover) + return; + if (round_handler_IsActive()) + round_handler_Reset(game_starttime); + } MUTATOR_CALLHOOK(reset_map_global); @@ -398,6 +405,9 @@ void ReadyRestart_think(entity this) // Forces a restart of the game without actually reloading the map // this is a mess... void ReadyRestart_force() { + if (time <= game_starttime && gameover) + return; + bprint("^1Server is restarting...\n"); VoteReset();