mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-02-18 01:52:34 +00:00
- fixed the distance check for unblocking overlapping monsters. It tested for half the radius as distance threshold when it should have used the full radius
This commit is contained in:
parent
19d15d7fc8
commit
1e4bec25c5
1 changed files with 2 additions and 2 deletions
|
@ -1064,8 +1064,8 @@ bool PIT_CheckThing(AActor *thing, FCheckPosition &tm)
|
||||||
{
|
{
|
||||||
unblocking = true;
|
unblocking = true;
|
||||||
}
|
}
|
||||||
else if (abs(thing->x - tm.thing->x) < (thing->radius+tm.thing->radius)/2 &&
|
else if (abs(thing->x - tm.thing->x) < (thing->radius+tm.thing->radius) &&
|
||||||
abs(thing->y - tm.thing->y) < (thing->radius+tm.thing->radius)/2)
|
abs(thing->y - tm.thing->y) < (thing->radius+tm.thing->radius))
|
||||||
|
|
||||||
{
|
{
|
||||||
fixed_t newdist = P_AproxDistance(thing->x - tm.x, thing->y - tm.y);
|
fixed_t newdist = P_AproxDistance(thing->x - tm.x, thing->y - tm.y);
|
||||||
|
|
Loading…
Reference in a new issue