]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
race_SendRankings --> race_SendRanking
authorterencehill <piuntn@gmail.com>
Thu, 11 Mar 2021 17:23:11 +0000 (18:23 +0100)
committerterencehill <piuntn@gmail.com>
Thu, 11 Mar 2021 17:23:11 +0000 (18:23 +0100)
qcsrc/server/race.qc
qcsrc/server/race.qh

index c09cd69ea83cb1db4316cb19936d9dd9a10fef8a..472a8ec4f630d9c589cf7ed8991a2687e864bc48 100644 (file)
@@ -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);
 
index 2665e75a00c587af16cc0fd7a08e04000a53914d..ab565e4381c1c31259e01ce3496343ae71af96bf 100644 (file)
@@ -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);