mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-06-04 19:10:59 +00:00
Generalized the psprites implementation
This commit is contained in:
parent
bd396ccb7c
commit
1966b61b8f
25 changed files with 743 additions and 477 deletions
|
@ -997,12 +997,12 @@ void AActor::ClearInventory()
|
|||
invp = &inv->Inventory;
|
||||
}
|
||||
}
|
||||
if (player != NULL)
|
||||
if (player != nullptr)
|
||||
{
|
||||
player->ReadyWeapon = NULL;
|
||||
player->ReadyWeapon = nullptr;
|
||||
player->PendingWeapon = WP_NOCHANGE;
|
||||
player->psprites[ps_weapon].state = NULL;
|
||||
player->psprites[ps_flash].state = NULL;
|
||||
player->GetPSprite(ps_weapon)->SetState(nullptr);
|
||||
player->GetPSprite(ps_flash)->SetState(nullptr);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue