From: drjaska Date: Mon, 26 Aug 2024 03:23:30 +0000 (+0300) Subject: Fix race_CheckName by actually using the given arg X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=dff098f0d9bb81626f79d84923f10c63d21fe3bc;p=xonotic%2Fxonotic-data.pk3dir.git Fix race_CheckName by actually using the given arg // Check if the given name already exists in race rankings? // In that case, where? (otherwise return 0) int race_CheckName(string net_name) --- diff --git a/qcsrc/common/gamemodes/gamemode/race/cl_race.qc b/qcsrc/common/gamemodes/gamemode/race/cl_race.qc index fa9ecafed..d0c3c0372 100644 --- a/qcsrc/common/gamemodes/gamemode/race/cl_race.qc +++ b/qcsrc/common/gamemodes/gamemode/race/cl_race.qc @@ -13,11 +13,12 @@ float race_status_time; int race_status_prev; string race_status_name_prev; -// Check if the given name already exist in race rankings? In that case, where? (otherwise return 0) +// Check if the given name already exists in race rankings? +// In that case, where? (otherwise return 0) int race_CheckName(string net_name) { int rank = 0; - string zoned_name = strzone(strdecolorize(entcs_GetName(player_localnum))); + string zoned_name = strzone(strdecolorize(net_name)); for (int i = RANKINGS_CNT - 1; i >= 0; --i) if (strdecolorize(grecordholder[i]) == zoned_name) {