mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 20:41:46 +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--;
|
count--;
|
||||||
spheres = players[playernum].spheres;
|
sincrement = spheres = players[playernum].spheres;
|
||||||
rings = players[playernum].rings;
|
rincrement = rings = players[playernum].rings;
|
||||||
sincrement = spheres/count;
|
|
||||||
rincrement = rings/count;
|
if (count)
|
||||||
|
{
|
||||||
|
sincrement /= count;
|
||||||
|
rincrement /= count;
|
||||||
|
}
|
||||||
|
|
||||||
for (i = 0; i < MAXPLAYERS; i++)
|
for (i = 0; i < MAXPLAYERS; i++)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue