mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-23 04:42:47 +00:00
ISO C90 fixup
This commit is contained in:
parent
de7575416a
commit
4906cd4331
1 changed files with 2 additions and 1 deletions
|
@ -8321,6 +8321,7 @@ static boolean P_MobjDeadThink(mobj_t *mobj)
|
|||
// See Linedef Exec 457 (Track mobj angle to point)
|
||||
static void P_TracerAngleThink(mobj_t *mobj)
|
||||
{
|
||||
angle_t ang;
|
||||
if (!mobj->tracer)
|
||||
return;
|
||||
|
||||
|
@ -8333,7 +8334,7 @@ static void P_TracerAngleThink(mobj_t *mobj)
|
|||
// mobj->cvval - Allowable failure delay
|
||||
// mobj->cvmem - Failure timer
|
||||
|
||||
angle_t ang = mobj->angle - R_PointToAngle2(mobj->x, mobj->y, mobj->tracer->x, mobj->tracer->y);
|
||||
ang = mobj->angle - R_PointToAngle2(mobj->x, mobj->y, mobj->tracer->x, mobj->tracer->y);
|
||||
|
||||
// \todo account for distance between mobj and tracer
|
||||
// Because closer mobjs can be facing beyond the angle tolerance
|
||||
|
|
Loading…
Reference in a new issue