mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-28 15:02:01 +00:00
- fixed use of wrong position variable in P_TeleportMove's thing iterator.
This commit is contained in:
parent
58fcd8d742
commit
f8a8d8eed2
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue