]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Making boolean name more descriptive
authorz411 <z411@omaera.org>
Sun, 12 Dec 2021 18:02:40 +0000 (15:02 -0300)
committerz411 <z411@omaera.org>
Sun, 12 Dec 2021 18:02:40 +0000 (15:02 -0300)
qcsrc/server/command/vote.qc

index 550919d73e25e2c685998b03e3d3bf96a74fa709..555e439367c6e25e7ec21ea4d8de5843f26a4918 100644 (file)
@@ -418,7 +418,7 @@ void ReadyRestart_force()
        if (time <= game_starttime && game_stopped)
                return;
 
-       bprint("^1Server is restarting...\n");
+       bprint("^1Match is restarting...\n");
 
        VoteReset();
 
@@ -471,7 +471,7 @@ void ReadyRestart_force()
        if (autocvar_sv_eventlog) GameLogEcho(":restart");
 }
 
-void ReadyRestart(bool endWarmup)
+void ReadyRestart(bool forceWarmupEnd)
 {
        if (MUTATOR_CALLHOOK(ReadyRestart_Deny) || intermission_running || race_completing) localcmd("restart\n");
        else localcmd("\nsv_hook_readyrestart\n");
@@ -480,10 +480,10 @@ void ReadyRestart(bool endWarmup)
        // Otherwise scores could be manipulated during the countdown.
        if (!sv_ready_restart_after_countdown) Score_ClearAll();
 
-       if(endWarmup)
+       if(forceWarmupEnd)
                warmup_stage = 0; // forcefully end warmup and go to match stage
        else
-               warmup_stage = cvar("g_warmup"); // go into warmup if it's enabled, otherwise restart into match stage anyway
+               warmup_stage = cvar("g_warmup"); // go into warmup if it's enabled, otherwise restart into match stage
 
        ReadyRestart_force();
 }