- fixed: monsters cannot crouch, so their crouch factor has to be 1, as 0 would yield incorrect results if the value is used in subsequent calculations (e.g. adjusting a trajectory to a target which can be or may not be a player.)

This commit is contained in:
Christoph Oelckers 2016-05-29 12:48:27 +02:00
parent bb91723174
commit 44f09edf4c

View file

@ -502,7 +502,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, GetCrouchFactor)
if (!mobj || !mobj->player) if (!mobj || !mobj->player)
{ {
ret->SetFloat(0); ret->SetFloat(1);
} }
else else
{ {