mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
- fixed: All missiles which can bounce off actors need the CANPASS/PASSMOBJ flag so setting this in the 'bouncetype' property is insufficient, it needs to be done when the actor has been completely parsed.
This commit is contained in:
parent
e9574276a5
commit
a37db1c4d7
2 changed files with 9 additions and 5 deletions
|
@ -425,6 +425,15 @@ void LoadActors()
|
|||
CheckForUnsafeStates(ti);
|
||||
}
|
||||
|
||||
// ensure that all actor bouncers have PASSMOBJ set.
|
||||
auto defaults = GetDefaultByType(ti);
|
||||
if (defaults->BounceFlags & (BOUNCE_Actors | BOUNCE_AllActors))
|
||||
{
|
||||
// PASSMOBJ is irrelevant for normal missiles, but not for bouncers.
|
||||
defaults->flags2 |= MF2_PASSMOBJ;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
if (FScriptPosition::ErrorCounter > 0)
|
||||
{
|
||||
|
|
|
@ -1216,11 +1216,6 @@ DEFINE_PROPERTY(bouncetype, S, Actor)
|
|||
}
|
||||
defaults->BounceFlags &= ~(BOUNCE_TypeMask | BOUNCE_UseSeeSound);
|
||||
defaults->BounceFlags |= flags[match];
|
||||
if (defaults->BounceFlags & (BOUNCE_Actors | BOUNCE_AllActors))
|
||||
{
|
||||
// PASSMOBJ is irrelevant for normal missiles, but not for bouncers.
|
||||
defaults->flags2 |= MF2_PASSMOBJ;
|
||||
}
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
|
|
Loading…
Reference in a new issue