mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
- 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:
parent
bb91723174
commit
44f09edf4c
1 changed files with 1 additions and 1 deletions
|
@ -502,7 +502,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, GetCrouchFactor)
|
|||
|
||||
if (!mobj || !mobj->player)
|
||||
{
|
||||
ret->SetFloat(0);
|
||||
ret->SetFloat(1);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue