mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 06:53:40 +00:00
- fixed: ACS's APROP_ViewHeight needs to check if a real player is attached to a PlayerPawn.
This commit is contained in:
parent
f4f1c4abbf
commit
f6d3de76cf
1 changed files with 1 additions and 1 deletions
|
@ -4372,7 +4372,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());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue