From ed8a33aeaf538d54ba16c429ecd69258a81e417f Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Fri, 25 Jan 2013 03:32:49 +0000 Subject: [PATCH] - Use P_DropWeapon() everywhere it makes sense. SVN r4045 (trunk) --- src/p_pspr.cpp | 4 ++-- src/p_user.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/p_pspr.cpp b/src/p_pspr.cpp index 38e89a678..25c3e9645 100644 --- a/src/p_pspr.cpp +++ b/src/p_pspr.cpp @@ -633,7 +633,7 @@ void P_CheckWeaponSwitch (player_t *player) // Put the weapon away if the player has a pending weapon or has died. if ((player->morphTics == 0 && player->PendingWeapon != WP_NOCHANGE) || player->health <= 0) { - P_SetPsprite (player, ps_weapon, weapon->GetDownState()); + P_DropWeapon(player); return; } else if (player->morphTics != 0) @@ -829,7 +829,7 @@ DEFINE_ACTION_FUNCTION(AInventory, A_Raise) } if (player->PendingWeapon != WP_NOCHANGE) { - P_SetPsprite (player, ps_weapon, player->ReadyWeapon->GetDownState()); + P_DropWeapon(player); return; } psp = &player->psprites[ps_weapon]; diff --git a/src/p_user.cpp b/src/p_user.cpp index c936ea47e..cb15b18f9 100644 --- a/src/p_user.cpp +++ b/src/p_user.cpp @@ -792,7 +792,7 @@ AWeapon *APlayerPawn::PickNewWeapon (const PClass *ammotype) player->PendingWeapon = best; if (player->ReadyWeapon != NULL) { - P_SetPsprite (player, ps_weapon, player->ReadyWeapon->GetDownState()); + P_DropWeapon(player); } else if (player->PendingWeapon != WP_NOCHANGE) {