From: Mario Date: Thu, 13 Oct 2016 08:30:45 +0000 (+1000) Subject: Fix CTS scores X-Git-Tag: xonotic-v0.8.2~517 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d1dda0cb9c4a3b21c5e5900a1ddafb4c9396161b;p=xonotic%2Fxonotic-data.pk3dir.git Fix CTS scores --- diff --git a/qcsrc/common/constants.qh b/qcsrc/common/constants.qh index 181511cc1..29f96aa44 100644 --- a/qcsrc/common/constants.qh +++ b/qcsrc/common/constants.qh @@ -179,9 +179,9 @@ REGISTER_SP(RACE_TIME); REGISTER_SP(RACE_LAPS); REGISTER_SP(RACE_FASTEST); -REGISTER_SP(CTS_TIME); -REGISTER_SP(CTS_LAPS); -REGISTER_SP(CTS_FASTEST); +//REGISTER_SP(CTS_TIME); +//REGISTER_SP(CTS_LAPS); +//REGISTER_SP(CTS_FASTEST); REGISTER_SP(ASSAULT_OBJECTIVES); diff --git a/qcsrc/server/mutators/mutator/gamemode_cts.qc b/qcsrc/server/mutators/mutator/gamemode_cts.qc index 4cd8e8767..f83eb6b64 100644 --- a/qcsrc/server/mutators/mutator/gamemode_cts.qc +++ b/qcsrc/server/mutators/mutator/gamemode_cts.qc @@ -35,13 +35,13 @@ void cts_ScoreRules() ScoreRules_basics(0, 0, 0, false); if(g_race_qualifying) { - ScoreInfo_SetLabel_PlayerScore(SP_CTS_FASTEST, "fastest", SFL_SORT_PRIO_PRIMARY | SFL_LOWER_IS_BETTER | SFL_TIME); + ScoreInfo_SetLabel_PlayerScore(SP_RACE_FASTEST, "fastest", SFL_SORT_PRIO_PRIMARY | SFL_LOWER_IS_BETTER | SFL_TIME); } else { - ScoreInfo_SetLabel_PlayerScore(SP_CTS_LAPS, "laps", SFL_SORT_PRIO_PRIMARY); - ScoreInfo_SetLabel_PlayerScore(SP_CTS_TIME, "time", SFL_SORT_PRIO_SECONDARY | SFL_LOWER_IS_BETTER | SFL_TIME); - ScoreInfo_SetLabel_PlayerScore(SP_CTS_FASTEST, "fastest", SFL_LOWER_IS_BETTER | SFL_TIME); + ScoreInfo_SetLabel_PlayerScore(SP_RACE_LAPS, "laps", SFL_SORT_PRIO_PRIMARY); + ScoreInfo_SetLabel_PlayerScore(SP_RACE_TIME, "time", SFL_SORT_PRIO_SECONDARY | SFL_LOWER_IS_BETTER | SFL_TIME); + ScoreInfo_SetLabel_PlayerScore(SP_RACE_FASTEST, "fastest", SFL_LOWER_IS_BETTER | SFL_TIME); } ScoreRules_basics_end(); }