From 44f09edf4ca753994cfb6b224592e3a9320d7239 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 29 May 2016 12:48:27 +0200 Subject: [PATCH] - 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.) --- src/thingdef/thingdef_codeptr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/thingdef/thingdef_codeptr.cpp b/src/thingdef/thingdef_codeptr.cpp index 87516a858f..f171edaeb9 100644 --- a/src/thingdef/thingdef_codeptr.cpp +++ b/src/thingdef/thingdef_codeptr.cpp @@ -502,7 +502,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, GetCrouchFactor) if (!mobj || !mobj->player) { - ret->SetFloat(0); + ret->SetFloat(1); } else {