mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 07:12:16 +00:00
- Fixed: BOUNCE_AutoOff should not trigger when bouncing off a ceiling, since it will always pass the velocity check.
SVN r3643 (trunk)
This commit is contained in:
parent
da08b14895
commit
f421f2411d
1 changed files with 2 additions and 2 deletions
|
@ -1376,8 +1376,8 @@ bool AActor::FloorBounceMissile (secplane_t &plane)
|
|||
if (abs(velz) < (fixed_t)(Mass * GetGravity() / 64))
|
||||
velz = 0;
|
||||
}
|
||||
else if (BounceFlags & BOUNCE_AutoOff)
|
||||
{
|
||||
else if (plane.c > 0 && BounceFlags & BOUNCE_AutoOff)
|
||||
{ // AutoOff only works when bouncing off a floor, not a ceiling.
|
||||
if (!(flags & MF_NOGRAVITY) && (velz < 3*FRACUNIT))
|
||||
BounceFlags &= ~BOUNCE_TypeMask;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue