Use SPBFORCEDIST for the K_FindUseodds bit

This commit is contained in:
Sally Coolatta 2022-09-03 09:45:29 -04:00
parent 3c34db0b55
commit 7d1d3809b4

View file

@ -1205,7 +1205,7 @@ static INT32 K_FindUseodds(player_t *player, fixed_t mashed, INT32 pingame, INT3
if (pingame == 1 && oddsvalid[0]) if (pingame == 1 && oddsvalid[0])
{ {
// Record Attack, or just alone // Record Attack / FREE PLAY
useodds = 0; useodds = 0;
} }
else if (pdis <= 0) else if (pdis <= 0)
@ -1213,7 +1213,7 @@ static INT32 K_FindUseodds(player_t *player, fixed_t mashed, INT32 pingame, INT3
// 1st place // 1st place
useodds = disttable[0]; useodds = disttable[0];
} }
else if (player->kartstuff[k_position] == 2 && pdis > (DISTVAR*6) else if (player->kartstuff[k_position] == 2 && pdis > SPBFORCEDIST
&& spbplace == -1 && !indirectitemcooldown && !dontforcespb && spbplace == -1 && !indirectitemcooldown && !dontforcespb
&& oddsvalid[9]) && oddsvalid[9])
{ {