From ecb815d8b1850567b4394c5b2a537514fc01a38f Mon Sep 17 00:00:00 2001 From: terencehill Date: Sat, 17 Jun 2023 22:48:50 +0200 Subject: [PATCH] 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 --- qcsrc/common/gamemodes/gamemode/cts/sv_cts.qc | 1 + qcsrc/common/gamemodes/gamemode/lms/sv_lms.qc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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) -- 2.39.2