- 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
parent f184438032
commit e6d89b9f71
15 changed files with 55 additions and 48 deletions

View file

@ -1001,8 +1001,8 @@ void AActor::ClearInventory()
{
player->ReadyWeapon = nullptr;
player->PendingWeapon = WP_NOCHANGE;
player->GetPSprite(ps_weapon)->SetState(nullptr);
player->GetPSprite(ps_flash)->SetState(nullptr);
P_SetPsprite(player, ps_weapon, nullptr);
P_SetPsprite(player, ps_flash, nullptr);
}
}