- fixed: Morph weapons weren't destroyed because the code checked for
them in the unmorphed player class. - fixed: With padding the largest texture to fit into a page is 254x254. SVN r2005 (trunk)
This commit is contained in:
parent
f3b19fcca2
commit
d14faa5f98
3 changed files with 9 additions and 3 deletions
|
|
@ -177,7 +177,7 @@ bool P_UndoPlayerMorph (player_t *activator, player_t *player, int unmorphflag,
|
|||
{
|
||||
AWeapon *beastweap;
|
||||
APlayerPawn *mo;
|
||||
AActor *pmo;
|
||||
APlayerPawn *pmo;
|
||||
angle_t angle;
|
||||
|
||||
pmo = player->mo;
|
||||
|
|
@ -330,7 +330,7 @@ bool P_UndoPlayerMorph (player_t *activator, player_t *player, int unmorphflag,
|
|||
}
|
||||
if (correctweapon)
|
||||
{ // Better "lose morphed weapon" semantics
|
||||
const PClass *morphweapon = PClass::FindClass (mo->MorphWeapon);
|
||||
const PClass *morphweapon = PClass::FindClass (pmo->MorphWeapon);
|
||||
if (morphweapon != NULL && morphweapon->IsDescendantOf (RUNTIME_CLASS(AWeapon)))
|
||||
{
|
||||
AWeapon *OriginalMorphWeapon = static_cast<AWeapon *>(mo->FindInventory (morphweapon));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue