mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Fix stupid divide-by-zero error
This commit is contained in:
parent
e0a799c1ed
commit
686d4ec516
1 changed files with 8 additions and 4 deletions
|
|
@ -2501,10 +2501,14 @@ static void CL_RemovePlayer(INT32 playernum, kickreason_t reason)
|
|||
}
|
||||
|
||||
count--;
|
||||
spheres = players[playernum].spheres;
|
||||
rings = players[playernum].rings;
|
||||
sincrement = spheres/count;
|
||||
rincrement = rings/count;
|
||||
sincrement = spheres = players[playernum].spheres;
|
||||
rincrement = rings = players[playernum].rings;
|
||||
|
||||
if (count)
|
||||
{
|
||||
sincrement /= count;
|
||||
rincrement /= count;
|
||||
}
|
||||
|
||||
for (i = 0; i < MAXPLAYERS; i++)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue