Generalized the psprites implementation
This commit is contained in:
parent
bd396ccb7c
commit
1966b61b8f
25 changed files with 744 additions and 478 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