Play the traditional thundershield manifestation sound when a thundershield is manifested, plus a minor eye towards forward compatibility in the condition for manifestation.

This commit is contained in:
toaster 2018-10-18 16:15:59 +01:00
parent 1f1ba26aa7
commit b03ae92253

View file

@ -4867,11 +4867,12 @@ void K_MoveKartPlayer(player_t *player, boolean onground)
} }
break; break;
case KITEM_THUNDERSHIELD: case KITEM_THUNDERSHIELD:
if (player->kartstuff[k_curshield] <= 0) if (player->kartstuff[k_curshield] != 1)
{ {
mobj_t *shield = P_SpawnMobj(player->mo->x, player->mo->y, player->mo->z, MT_THUNDERSHIELD); mobj_t *shield = P_SpawnMobj(player->mo->x, player->mo->y, player->mo->z, MT_THUNDERSHIELD);
P_SetScale(shield, (shield->destscale = (5*shield->destscale)>>2)); P_SetScale(shield, (shield->destscale = (5*shield->destscale)>>2));
P_SetTarget(&shield->target, player->mo); P_SetTarget(&shield->target, player->mo);
S_StartSound(shield, sfx_s3k41);
player->kartstuff[k_curshield] = 1; player->kartstuff[k_curshield] = 1;
} }
if (ATTACK_IS_DOWN && !HOLDING_ITEM && NO_HYUDORO) if (ATTACK_IS_DOWN && !HOLDING_ITEM && NO_HYUDORO)