additional fakeclient checks

This commit is contained in:
jenz
2026-10-14 15:34:54 +02:00
parent dd44cb5e49
commit c689b4094d
@@ -52,7 +52,6 @@ enum struct MapStageCategoryCvars
int CvarsHash; int CvarsHash;
} }
CurrentMapClientRecords g_CurrentClientRaceZone[MAXPLAYERS +1];
ArrayList g_hCurrentMapClientRecords; ArrayList g_hCurrentMapClientRecords;
enum struct CurrentMapClientRecords enum struct CurrentMapClientRecords
{ {
@@ -64,6 +63,7 @@ enum struct CurrentMapClientRecords
int recordedAt; // Unix timestamp - fetched via UNIX_TIMESTAMP(recorded_at) int recordedAt; // Unix timestamp - fetched via UNIX_TIMESTAMP(recorded_at)
int categoryNumber; int categoryNumber;
} }
CurrentMapClientRecords g_CurrentClientRaceZone[MAXPLAYERS +1];
ArrayList g_hCurrentMapAllTopRecords; ArrayList g_hCurrentMapAllTopRecords;
enum struct CurrentMapAllTopRecords enum struct CurrentMapAllTopRecords
@@ -688,7 +688,7 @@ public bool checkClientOrigin(float oldVals[3], float newVals[3], int client)
//---------------------------------------------------------------------------------------------------- //----------------------------------------------------------------------------------------------------
public void unloze_zoneEntry(int client, char[] zone) public void unloze_zoneEntry(int client, char[] zone)
{ {
if (g_bClientsIgnoring[client]) if (g_bClientsIgnoring[client] || IsFakeClient(client))
{ {
return; return;
} }
@@ -724,7 +724,7 @@ public void unloze_zoneEntry(int client, char[] zone)
public void unloze_zoneLeave(int client, char[] zone) public void unloze_zoneLeave(int client, char[] zone)
{ {
//only maps with multiple zones need ZONE_PREFIX_START //only maps with multiple zones need ZONE_PREFIX_START
if (g_bClientsIgnoring[client]) if (g_bClientsIgnoring[client] || IsFakeClient(client))
{ {
return; return;
} }