- fixed some mixed up variables in a few blockmap iterators.

This commit is contained in:
Christoph Oelckers 2016-03-08 18:34:58 +01:00
commit 42521ffd6f
3 changed files with 5 additions and 5 deletions

View file

@ -5527,7 +5527,7 @@ void P_FindAboveIntersectors(AActor *actor)
{
AActor *thing = cres.thing;
fixed_t blockdist = actor->radius + thing->radius;
if (abs(actor->X() - cres.position.x) >= blockdist || abs(actor->Y() - cres.position.y) >= blockdist)
if (abs(thing->X() - cres.position.x) >= blockdist || abs(thing->Y() - cres.position.y) >= blockdist)
continue;
if (!(thing->flags & MF_SOLID))
@ -5583,7 +5583,7 @@ void P_FindBelowIntersectors(AActor *actor)
{
AActor *thing = cres.thing;
fixed_t blockdist = actor->radius + thing->radius;
if (abs(actor->X() - cres.position.x) >= blockdist || abs(actor->Y() - cres.position.y) >= blockdist)
if (abs(thing->X() - cres.position.x) >= blockdist || abs(thing->Y() - cres.position.y) >= blockdist)
continue;
if (!(thing->flags & MF_SOLID))