mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-06 18:08:26 +00:00
shavit-stats.sp - fix error due to IsPlayerAlive() being called on disconnected client (#1245)
This commit is contained in:
parent
ee96ef9f7f
commit
14b9674962
@ -436,7 +436,7 @@ void SavePlaytime222(int client, float now, Transaction&trans, int style, int iS
|
||||
if (gI_CurrentStyle[client] == style && gF_PlaytimeStyleStart[client] != 0.0)
|
||||
{
|
||||
diff += now - gF_PlaytimeStyleStart[client];
|
||||
gF_PlaytimeStyleStart[client] = IsPlayerAlive(client) ? now : 0.0;
|
||||
gF_PlaytimeStyleStart[client] = IsClientInGame(client) ? IsPlayerAlive(client) ? now : 0.0 : 0.0;
|
||||
}
|
||||
|
||||
gF_PlaytimeStyleSum[client][style] = 0.0;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user