From: terencehill Date: Thu, 11 Mar 2021 17:23:11 +0000 (+0100) Subject: race_SendRankings --> race_SendRanking X-Git-Tag: xonotic-v0.8.5~512^2~2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=34ebf762a4b100606a309452a741b39db85d862d;p=xonotic%2Fxonotic-data.pk3dir.git race_SendRankings --> race_SendRanking --- diff --git a/qcsrc/server/race.qc b/qcsrc/server/race.qc index c09cd69ea..472a8ec4f 100644 --- a/qcsrc/server/race.qc +++ b/qcsrc/server/race.qc @@ -286,7 +286,7 @@ void race_send_rankings_cnt(float msg) WriteByte(msg, m); } -void race_SendRankings(float pos, float prevpos, float del, float msg) +void race_SendRanking(float pos, float prevpos, float del, float msg) { WriteHeader(msg, TE_CSQC_RACE); WriteByte(msg, RACE_NET_SERVER_RANKINGS); @@ -344,7 +344,7 @@ void race_SendAll(entity player, bool only_rankings) int m = min(RANKINGS_CNT, autocvar_g_cts_send_rankings_cnt); race_send_rankings_cnt(MSG_ONE); for (int i = 1; i <= m; ++i) - race_SendRankings(i, 0, 0, MSG_ONE); + race_SendRanking(i, 0, 0, MSG_ONE); } void race_SendStatus(float id, entity e) @@ -427,7 +427,7 @@ void race_setTime(string map, float t, string myuid, string mynetname, entity e, race_send_recordtime(MSG_ALL); } - race_SendRankings(newpos, player_prevpos, 0, MSG_ALL); + race_SendRanking(newpos, player_prevpos, 0, MSG_ALL); strcpy(rankings_reply, getrankings()); if(newpos == player_prevpos) @@ -470,7 +470,7 @@ void race_deleteTime(string map, float pos) } } - race_SendRankings(pos, 0, 1, MSG_ALL); + race_SendRanking(pos, 0, 1, MSG_ALL); if(pos == 1) race_send_recordtime(MSG_ALL); diff --git a/qcsrc/server/race.qh b/qcsrc/server/race.qh index 2665e75a0..ab565e438 100644 --- a/qcsrc/server/race.qh +++ b/qcsrc/server/race.qh @@ -48,12 +48,13 @@ float race_GetFractionalLapCount(entity e); float race_readTime(string map, float pos); string race_readUID(string map, float pos); string race_readName(string map, float pos); + void race_checkAndWriteName(entity player); void race_ClearRecords(); void race_SendNextCheckpoint(entity e, float spec); void race_PreparePlayer(entity this); void race_send_recordtime(float msg); -void race_send_speedaward(float msg); + void race_setTime(string map, float t, string myuid, string mynetname, entity e, bool showmessage); float speedaward_speed; @@ -69,7 +70,7 @@ void race_send_speedaward_alltimebest(float msg); void race_SpeedAwardFrame(entity player); void race_send_rankings_cnt(float msg); -void race_SendRankings(float pos, float prevpos, float del, float msg); +void race_SendRanking(float pos, float prevpos, float del, float msg); void race_SendAll(entity player, bool only_rankings); void race_RetractPlayer(entity this);