From dff098f0d9bb81626f79d84923f10c63d21fe3bc Mon Sep 17 00:00:00 2001 From: drjaska Date: Mon, 26 Aug 2024 06:23:30 +0300 Subject: [PATCH] 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) --- qcsrc/common/gamemodes/gamemode/race/cl_race.qc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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) { -- 2.39.2