mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Revert "Fix being able to hold items to get them as early as possible"
This reverts commit 43732b386d.
This commit is contained in:
parent
43732b386d
commit
c8da95cbda
1 changed files with 5 additions and 9 deletions
14
src/k_kart.c
14
src/k_kart.c
|
|
@ -1150,21 +1150,17 @@ static void K_KartItemRoulette(player_t *player, ticcmd_t *cmd)
|
|||
// If the roulette finishes or the player presses BT_ATTACK, stop the roulette and calculate the item.
|
||||
// I'm returning via the exact opposite, however, to forgo having another bracket embed. Same result either way, I think.
|
||||
// Finally, if you get past this check, now you can actually start calculating what item you get.
|
||||
if (((cmd->buttons & BT_ATTACK) && !(player->pflags & PF_ATTACKDOWN))
|
||||
&& (player->kartstuff[k_itemroulette] >= roulettestop)
|
||||
if ((cmd->buttons & BT_ATTACK) && (player->kartstuff[k_itemroulette] >= roulettestop)
|
||||
&& !(player->kartstuff[k_eggmanheld] || player->kartstuff[k_itemheld] || player->kartstuff[k_userings]))
|
||||
{
|
||||
// Mashing reduces your chances for the good items
|
||||
mashed = FixedDiv((player->kartstuff[k_itemroulette])*FRACUNIT, ((TICRATE*3)+roulettestop)*FRACUNIT) - FRACUNIT;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (cmd->buttons & BT_ATTACK)
|
||||
player->pflags |= PF_ATTACKDOWN;
|
||||
else if (!(player->kartstuff[k_itemroulette] >= (TICRATE*3)))
|
||||
return;
|
||||
|
||||
if (!(player->kartstuff[k_itemroulette] >= (TICRATE*3)))
|
||||
return;
|
||||
}
|
||||
if (cmd->buttons & BT_ATTACK)
|
||||
player->pflags |= PF_ATTACKDOWN;
|
||||
|
||||
for (i = 0; i < MAXPLAYERS; i++)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue