- re-added P_SetPSprite.

For debugging purposes it's better to have this as a function.
This commit is contained in:
Christoph Oelckers 2016-05-24 13:05:43 +02:00
commit e6d89b9f71
15 changed files with 55 additions and 48 deletions

View file

@ -39,7 +39,7 @@ void APigPlayer::MorphPlayerThink ()
{ // Snout sniff
if (player->ReadyWeapon != nullptr)
{
player->GetPSprite(ps_weapon)->SetState(player->ReadyWeapon->FindState("Grunt"));
P_SetPsprite(player, ps_weapon, player->ReadyWeapon->FindState("Grunt"));
}
S_Sound (this, CHAN_VOICE, "PigActive1", 1, ATTN_NORM); // snort
return;