Fix shitty maxodds assert
Why aren't we just clamping this?
This commit is contained in:
parent
318ae2ef6b
commit
29ca3d2ecd
1 changed files with 1 additions and 1 deletions
|
|
@ -785,7 +785,7 @@ UINT8 K_FindUseodds(const player_t *player, fixed_t mashed, UINT32 pdis, UINT8 b
|
|||
|
||||
#undef SETUPDISTTABLE
|
||||
|
||||
return useodds;
|
||||
return min(MAXODDS - 1, useodds);
|
||||
}
|
||||
|
||||
INT32 K_GetRollingRouletteItem(player_t *player)
|
||||
|
|
|
|||
Loading…
Reference in a new issue