- 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:
Christoph Oelckers 2015-07-15 10:15:12 +02:00
parent 19d15d7fc8
commit 1e4bec25c5

View file

@ -1064,8 +1064,8 @@ bool PIT_CheckThing(AActor *thing, FCheckPosition &tm)
{
unblocking = true;
}
else if (abs(thing->x - tm.thing->x) < (thing->radius+tm.thing->radius)/2 &&
abs(thing->y - tm.thing->y) < (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))
{
fixed_t newdist = P_AproxDistance(thing->x - tm.x, thing->y - tm.y);