summaryrefslogtreecommitdiff
path: root/src/game/g_missile.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/g_missile.c')
-rw-r--r--src/game/g_missile.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game/g_missile.c b/src/game/g_missile.c
index 193c7404..942697eb 100644
--- a/src/game/g_missile.c
+++ b/src/game/g_missile.c
@@ -243,6 +243,7 @@ fire_flamer
gentity_t *fire_flamer( gentity_t *self, vec3_t start, vec3_t dir )
{
gentity_t *bolt;
+ vec3_t pvel;
VectorNormalize (dir);
@@ -266,7 +267,8 @@ gentity_t *fire_flamer( gentity_t *self, vec3_t start, vec3_t dir )
bolt->s.pos.trType = TR_LINEAR;
bolt->s.pos.trTime = level.time - MISSILE_PRESTEP_TIME; // move a bit on the very first frame
VectorCopy( start, bolt->s.pos.trBase );
- VectorMA( self->client->ps.velocity, FIREBALL_SPEED, dir, bolt->s.pos.trDelta );
+ VectorScale( self->client->ps.velocity, FIREBALL_LAG, pvel );
+ VectorMA( pvel, FIREBALL_SPEED, dir, bolt->s.pos.trDelta );
SnapVector( bolt->s.pos.trDelta ); // save net bandwidth
VectorCopy (start, bolt->r.currentOrigin);