From: terencehill Date: Sat, 17 Jun 2023 20:48:50 +0000 (+0200) Subject: Fix bug in Race and CTS preventing stats submission to xonstats for spectators that... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ecb815d8b1850567b4394c5b2a537514fc01a38f;p=xonotic%2Fxonotic-data.pk3dir.git Fix bug in Race and CTS preventing stats submission to xonstats for spectators that set a time. This change also makes spectators that set a time appear in the scoreboard among players --- diff --git a/qcsrc/common/gamemodes/gamemode/cts/sv_cts.qc b/qcsrc/common/gamemodes/gamemode/cts/sv_cts.qc index 0fbab7ae5..52e2d0973 100644 --- a/qcsrc/common/gamemodes/gamemode/cts/sv_cts.qc +++ b/qcsrc/common/gamemodes/gamemode/cts/sv_cts.qc @@ -202,6 +202,7 @@ MUTATOR_HOOKFUNCTION(cts, MakePlayerObserver) race_PreparePlayer(player); player.race_checkpoint = -1; + return true; // don't clear .frags } MUTATOR_HOOKFUNCTION(cts, PlayerSpawn) diff --git a/qcsrc/common/gamemodes/gamemode/lms/sv_lms.qc b/qcsrc/common/gamemodes/gamemode/lms/sv_lms.qc index 348262e76..9bf4a3995 100644 --- a/qcsrc/common/gamemodes/gamemode/lms/sv_lms.qc +++ b/qcsrc/common/gamemodes/gamemode/lms/sv_lms.qc @@ -432,7 +432,7 @@ MUTATOR_HOOKFUNCTION(lms, MakePlayerObserver) if (!GameRules_scoring_add(player, LMS_RANK, 0)) lms_RemovePlayer(player); } - return true; // prevent team reset + return true; // don't clear .frags } MUTATOR_HOOKFUNCTION(lms, ClientConnect)