mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-24 12:51:09 +00:00
- restored the original implementation of DONTOVERLAP, because Heretic depends on it being somewhat broken.
A side effect of the incorrect implementation is that Gargoyles hitting other Gargoyles won't call P_DamageMobj.
This commit is contained in:
parent
a000b57204
commit
a105a08bd6
2 changed files with 2 additions and 2 deletions
|
@ -1545,7 +1545,7 @@ dopain:
|
||||||
target->SetState (target->SeeState);
|
target->SetState (target->SeeState);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if ((damage > 0 || fakedPain) && source != target->target && target->OkayToSwitchTarget (source))
|
else if (source != target->target && target->OkayToSwitchTarget (source))
|
||||||
{
|
{
|
||||||
// Target actor is not intent on another actor,
|
// Target actor is not intent on another actor,
|
||||||
// so make him chase after source
|
// so make him chase after source
|
||||||
|
|
|
@ -1298,7 +1298,7 @@ bool PIT_CheckThing(FMultiBlockThingsIterator &it, FMultiBlockThingsIterator::Ch
|
||||||
if ((tm.thing->Z() >= topz) || (tm.thing->Top() <= thing->Z()))
|
if ((tm.thing->Z() >= topz) || (tm.thing->Top() <= thing->Z()))
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
// If they are not allowed to overlap, the rest of this function still needs to be executed.
|
else return unblocking; // This may not really make sense, but Heretic depends on the broken implementation.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue