]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix bug in Race and CTS preventing stats submission to xonstats for spectators that...
authorterencehill <piuntn@gmail.com>
Sat, 17 Jun 2023 20:48:50 +0000 (22:48 +0200)
committerterencehill <piuntn@gmail.com>
Sat, 17 Jun 2023 20:48:50 +0000 (22:48 +0200)
This change also makes spectators that set a time appear in the scoreboard among players

qcsrc/common/gamemodes/gamemode/cts/sv_cts.qc
qcsrc/common/gamemodes/gamemode/lms/sv_lms.qc

index 0fbab7ae51f54159e1913b7fe723bd4795b77ed4..52e2d09732cd8842364b197733928faf3c7c9843 100644 (file)
@@ -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)
index 348262e76c231cd7d60d1ebe68bc3b8edd8e68ed..9bf4a39959de754a0c51a831d2506b0bb0680f67 100644 (file)
@@ -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)