mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-11 09:12:22 +00:00
Instantly update stats when players leave
This commit is contained in:
parent
134a5ef9c0
commit
d89d06be31
2 changed files with 2 additions and 5 deletions
|
|
@ -639,7 +639,8 @@ void K_PlayerForfeit(UINT8 playerNum, boolean pointLoss)
|
|||
|
||||
if (pointLoss)
|
||||
{
|
||||
CONS_Printf("Stats update by %d\n", inc);
|
||||
clientpowerlevels[playerNum][powerType] += clientPowerAdd[playerNum];
|
||||
clientPowerAdd[playerNum] = 0;
|
||||
SV_UpdateStats();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -141,8 +141,6 @@ void SV_UpdateStats(void)
|
|||
if (!server)
|
||||
return;
|
||||
|
||||
CONS_Printf("SV_UpdateStats\n");
|
||||
|
||||
for(i = 0; i < MAXPLAYERS; i++)
|
||||
{
|
||||
if (!playeringame[i])
|
||||
|
|
@ -153,8 +151,6 @@ void SV_UpdateStats(void)
|
|||
continue;
|
||||
}
|
||||
|
||||
CONS_Printf("updating %d\n", i);
|
||||
|
||||
boolean match = false;
|
||||
for(j = 0; j < numtracked; j++)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue