- Fixed the morphed player actor friendliness.

It wasn't inherited from the original player actor object.
This commit is contained in:
Edoardo Prezioso 2016-04-18 15:28:45 +02:00 committed by Christoph Oelckers
parent a30eb4d709
commit 8dee0be9ab

View file

@ -91,6 +91,8 @@ bool P_MorphPlayer (player_t *activator, player_t *p, PClassPlayerPawn *spawntyp
morphed->Angles.Yaw = actor->Angles.Yaw;
morphed->target = actor->target;
morphed->tracer = actor;
morphed->FriendPlayer = actor->FriendPlayer;
morphed->DesignatedTeam = actor->DesignatedTeam;
morphed->Score = actor->Score;
p->PremorphWeapon = p->ReadyWeapon;
morphed->special2 = actor->flags & ~MF_JUSTHIT;