mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-02-21 19:10:50 +00:00
- fixed edge case where both Mancubus and Arachnotron have the same replacement and trigger a boss action.
This commit is contained in:
parent
1c32d22b3e
commit
c4fbbfa033
1 changed files with 6 additions and 2 deletions
|
@ -3146,13 +3146,17 @@ void A_BossDeath(AActor *self)
|
|||
}
|
||||
if (level.flags & LEVEL_MAP07SPECIAL)
|
||||
{
|
||||
if (type == NAME_Fatso)
|
||||
PClassActor * fatso = PClass::FindActor(NAME_Fatso);
|
||||
PClassActor * arachnotron = PClass::FindActor(NAME_Arachnotron);
|
||||
bool samereplacement = (type == NAME_Fatso || type == NAME_Arachnotron) && fatso && arachnotron && fatso->GetReplacement() == arachnotron->GetReplacement();
|
||||
|
||||
if (type == NAME_Fatso || samereplacement)
|
||||
{
|
||||
EV_DoFloor (DFloor::floorLowerToLowest, NULL, 666, 1., 0, -1, 0, false);
|
||||
return;
|
||||
}
|
||||
|
||||
if (type == NAME_Arachnotron)
|
||||
if (type == NAME_Arachnotron || samereplacement)
|
||||
{
|
||||
EV_DoFloor (DFloor::floorRaiseByTexture, NULL, 667, 1., 0, -1, 0, false);
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue