mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-20 12:31:14 +00:00
Fix divide by 0 bug
This commit is contained in:
parent
1e29c9ce98
commit
1f1a6094b5
1 changed files with 1 additions and 1 deletions
|
|
@ -800,7 +800,7 @@ static INT32 K_FindUseodds(player_t *player, fixed_t mashed, INT32 pingame, INT3
|
|||
players[i].mo->y - player->mo->y),
|
||||
players[i].mo->z - player->mo->z) / mapheaderinfo[gamemap-1]->mobj_scale
|
||||
* (pingame - players[i].kartstuff[k_position])
|
||||
/ ((pingame - 1) * (pingame + 1) / 3);
|
||||
/ max(1, ((pingame - 1) * (pingame + 1) / 3));
|
||||
}
|
||||
|
||||
#define SETUPDISTTABLE(odds, num) \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue