- fixed use of wrong position variable in P_TeleportMove's thing iterator.

This commit is contained in:
Christoph Oelckers 2016-02-20 22:53:47 +01:00
parent 58fcd8d742
commit f8a8d8eed2

View file

@ -446,7 +446,7 @@ bool P_TeleportMove(AActor *thing, fixed_t x, fixed_t y, fixed_t z, bool telefra
continue; continue;
fixed_t blockdist = th->radius + tmf.thing->radius; fixed_t blockdist = th->radius + tmf.thing->radius;
if (abs(th->X() - cres.position.x) >= blockdist || abs(th->Y() - cres.position.y) >= blockdist) if (abs(th->X() - cres2.position.x) >= blockdist || abs(th->Y() - cres2.position.y) >= blockdist)
continue; continue;
if ((th->flags2 | tmf.thing->flags2) & MF2_THRUACTORS) if ((th->flags2 | tmf.thing->flags2) & MF2_THRUACTORS)