parent
d933f77bf5
commit
8668719bbc
15 changed files with 48 additions and 55 deletions
|
|
@ -345,7 +345,7 @@ void cht_DoCheat (player_t *player, int cheat)
|
|||
player->mo->DamageType = NAME_None;
|
||||
if (player->ReadyWeapon != nullptr)
|
||||
{
|
||||
P_SetPsprite(player, PSP_WEAPON, player->ReadyWeapon->GetUpState());
|
||||
player->GetPSprite(PSP_WEAPON)->SetState(player->ReadyWeapon->GetUpState());
|
||||
}
|
||||
|
||||
if (player->morphTics > 0)
|
||||
|
|
@ -934,8 +934,8 @@ void cht_Take (player_t *player, const char *name, int amount)
|
|||
|
||||
player->ReadyWeapon = nullptr;
|
||||
player->PendingWeapon = WP_NOCHANGE;
|
||||
P_SetPsprite(player, PSP_WEAPON, nullptr);
|
||||
P_SetPsprite(player, PSP_FLASH, nullptr);
|
||||
player->GetPSprite(PSP_WEAPON)->SetState(nullptr);
|
||||
player->GetPSprite(PSP_FLASH)->SetState(nullptr);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue