- Added a flag to make bouncing objects disappear when hitting sky surfaces

This commit is contained in:
Player701 2018-11-30 13:22:34 +03:00 committed by Christoph Oelckers
commit b79e3f8904
7 changed files with 28 additions and 8 deletions

View file

@ -3551,9 +3551,9 @@ bool FSlide::BounceWall(AActor *mo)
}
line = bestslideline;
if (line->special == Line_Horizon)
if (line->special == Line_Horizon || (mo->BounceFlags & BOUNCE_NotOnSky) && line->hitSkyWall(mo))
{
mo->SeeSound = 0; // it might make a sound otherwise
mo->SeeSound = mo->BounceSound = 0; // it might make a sound otherwise
mo->Destroy();
return true;
}