Fix #2722 "Voting endmatch during intermission will skip the next map and go into...
authorterencehill <piuntn@gmail.com>
Thu, 21 Jul 2022 23:35:05 +0000 (01:35 +0200)
committerterencehill <piuntn@gmail.com>
Thu, 21 Jul 2022 23:35:05 +0000 (01:35 +0200)
qcsrc/server/world.qc

index ed51bc8082cbb3510d6a1494af4806e37dfdcdab..bd713ecd09cea6562c5f41e6eef7b06455eb7641 100644 (file)
@@ -679,6 +679,7 @@ void InitGameplayMode()
 bool world_already_spawned;
 spawnfunc(worldspawn)
 {
 bool world_already_spawned;
 spawnfunc(worldspawn)
 {
+       cvar_set("_endmatch", "0");
        server_is_dedicated = boolean(stof(cvar_defstring("is_dedicated")));
 
        if (autocvar_sv_termsofservice_url && autocvar_sv_termsofservice_url != "")
        server_is_dedicated = boolean(stof(cvar_defstring("is_dedicated")));
 
        if (autocvar_sv_termsofservice_url && autocvar_sv_termsofservice_url != "")