From 23ecab92f393d35ad7c30890a48229277b7ec0ed Mon Sep 17 00:00:00 2001 From: danij Date: Sun, 14 Jun 2009 19:17:17 +0000 Subject: [PATCH] Fixed jDoom: "A_SkelMissile not taking vertical offset into account" (see here http://sourceforge.net/tracker/?func=detail&aid=2796729&group_id=74815&atid=542099). --- doomsday/plugins/jdoom/src/p_enemy.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doomsday/plugins/jdoom/src/p_enemy.c b/doomsday/plugins/jdoom/src/p_enemy.c index c3eb1f895d..10e2186a50 100644 --- a/doomsday/plugins/jdoom/src/p_enemy.c +++ b/doomsday/plugins/jdoom/src/p_enemy.c @@ -1053,7 +1053,7 @@ void C_DECL A_Tracer(mobj_t *actor) actor->pos[VY] - actor->mom[MY], actor->pos[VZ], actor->angle + ANG180, 0); - th->mom[MZ] = 1; + th->mom[MZ] = FIX2FLT(FRACUNIT); th->tics -= P_Random() & 3; if(th->tics < 1) th->tics = 1; @@ -1098,9 +1098,9 @@ void C_DECL A_Tracer(mobj_t *actor) slope = (dest->pos[VZ] + 40 - actor->pos[VZ]) / dist; if(slope < actor->mom[MZ]) - actor->mom[MZ] -= 1 / 8; + actor->mom[MZ] -= FIX2FLT(FRACUNIT / 8); else - actor->mom[MZ] += 1 / 8; + actor->mom[MZ] += FIX2FLT(FRACUNIT / 8); } void C_DECL A_SkelWhoosh(mobj_t *actor)