make sure recovery spin is active before allowing this
This commit is contained in:
parent
137ffd14cf
commit
d838d4a8ff
2 changed files with 2 additions and 1 deletions
|
|
@ -2993,6 +2993,7 @@ mobj_t *K_SpawnEquippedItem(player_t *player, kartitemequip_e equipstyle, mobjty
|
|||
mo->movedir = mo->lastlook = moloop+1;
|
||||
break;
|
||||
case KITEMEQUIP_SHIELD: // Force Field Shields
|
||||
K_FlipFromObject(mo, player->mo);
|
||||
P_SetScale(mo, (mo->destscale = (5*mo->destscale)>>2));
|
||||
P_SetTarget(&player->shieldtracer, mo);
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -10065,7 +10065,7 @@ static boolean K_PlayerCanRecoverySpin(player_t *player)
|
|||
|
||||
static void K_RecoveryDash(player_t *player)
|
||||
{
|
||||
if (K_PlayerWantsRecoverySpin(player) && K_IsPlayerDamaged(player) && player->wipeoutslow == 0)
|
||||
if (K_RecoveryDashActive() && K_PlayerWantsRecoverySpin(player) && K_IsPlayerDamaged(player) && player->wipeoutslow == 0)
|
||||
{
|
||||
player->wipeoutslow = max(wipeoutslowtime + 1, player->spinouttimer + 4);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue