summaryrefslogtreecommitdiff
path: root/src/cgame/cg_ents.c
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2001-07-03 03:08:56 +0000
committerTim Angus <tim@ngus.net>2001-07-03 03:08:56 +0000
commit29cd16eaf0c6ca52b63ea4645cf206c5f8b7d791 (patch)
tree83dd4679d41b2b8a6bacde989f973eba4a507722 /src/cgame/cg_ents.c
parente34d763c41d92804b4bd81417427b3b172d3994a (diff)
Finished new turrets, fixed a few bugs notably the freeze-when-shot-by-turret bug
Diffstat (limited to 'src/cgame/cg_ents.c')
-rw-r--r--src/cgame/cg_ents.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cgame/cg_ents.c b/src/cgame/cg_ents.c
index 3b66aad6..1c36c2f8 100644
--- a/src/cgame/cg_ents.c
+++ b/src/cgame/cg_ents.c
@@ -409,6 +409,10 @@ static void CG_Missile( centity_t *cent ) {
BG_EvaluateTrajectoryDelta( &cent->currentState.pos, cg.time, velocity );
+ //TA: FIXME: hack until i figure out why trap_S_ALS has a problem with velocity`
+ if( s1->weapon == WP_PLASMAGUN )
+ VectorClear( velocity );
+
trap_S_AddLoopingSound( cent->currentState.number, cent->lerpOrigin, velocity, weapon->missileSound );
}