mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-06 18:08:26 +00:00
Fix late-loading for wr plugin
Players time won't count after finishing the map. Hopefully fixes issue with late loading. do not risk overwriting the player's data if their PB isn't loaded to cache yet in Shavit_OnFinish
This commit is contained in:
parent
183faae643
commit
26b4e53946
@ -507,6 +507,14 @@ public void OnClientAuthorized(int client, const char[] auth)
|
||||
}
|
||||
}
|
||||
|
||||
public void OnClientPostAdminCheck(int client)
|
||||
{
|
||||
if (gB_Connected && !IsFakeClient(client) && !gB_LoadedCache[client])
|
||||
{
|
||||
UpdateClientCache(client);
|
||||
}
|
||||
}
|
||||
|
||||
public void OnClientDisconnect(int client)
|
||||
{
|
||||
delete gH_PBMenu[client];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user