mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-21 18:32:08 +00:00
dist is unused
This commit is contained in:
parent
1febf8cb4b
commit
f3e66f7b58
1 changed files with 0 additions and 1 deletions
|
@ -9693,7 +9693,6 @@ void P_MobjThinker(mobj_t *mobj)
|
|||
fixed_t x = mobj->spawnpoint->x << FRACBITS;
|
||||
fixed_t y = mobj->spawnpoint->y << FRACBITS;
|
||||
fixed_t z = mobj->spawnpoint->z << FRACBITS;
|
||||
fixed_t dist = P_AproxDistance(mobj->x - x, mobj->y - y);
|
||||
angle_t diff = R_PointToAngle2(mobj->x, mobj->y, x, y) - mobj->angle;
|
||||
if (diff > ANGLE_180)
|
||||
mobj->angle -= DRAGONTURNSPEED;
|
||||
|
|
Loading…
Reference in a new issue