- 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
1 changed files with 1 additions and 1 deletions

View File

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