- fixed: ACS's APROP_ViewHeight needs to check if a real player is attached to a PlayerPawn.

This commit is contained in:
Christoph Oelckers 2019-04-07 23:45:08 +02:00 committed by drfrag
parent 943991ff89
commit 5eebffd7b5

View file

@ -4505,7 +4505,7 @@ int DLevelScript::GetActorProperty (int tid, int property)
case APROP_Radius: return DoubleToACS(actor->radius);
case APROP_ReactionTime:return actor->reactiontime;
case APROP_MeleeRange: return DoubleToACS(actor->meleerange);
case APROP_ViewHeight: if (actor->IsKindOf(NAME_PlayerPawn))
case APROP_ViewHeight: if (actor->player)
{
return DoubleToACS(actor->player->DefaultViewHeight());
}