Skip to content

Commit

Permalink
Fixed jDoom: "A_SkelMissile not taking vertical offset into account" …
Browse files Browse the repository at this point in the history
  • Loading branch information
danij committed Jun 14, 2009
1 parent ee3e0d8 commit 23ecab9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doomsday/plugins/jdoom/src/p_enemy.c
Expand Up @@ -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;
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 23ecab9

Please sign in to comment.