diff options
author | Tim Angus <tim@ngus.net> | 2003-10-01 03:16:40 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2003-10-01 03:16:40 +0000 |
commit | 9200e58095622dbb0acbaf96814e41c728618427 (patch) | |
tree | 42e7fa43121590087daa4073575d9c0195741003 /src/cgame/cg_ents.c | |
parent | 1aea8082acf2155ec10a090389e7c9147a47edbb (diff) |
* Buildables now have an explosion sound
* Added some sanity checks to the particle system
* Bug fixes
Diffstat (limited to 'src/cgame/cg_ents.c')
-rw-r--r-- | src/cgame/cg_ents.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/cgame/cg_ents.c b/src/cgame/cg_ents.c index 0d8f26de..869eb8c6 100644 --- a/src/cgame/cg_ents.c +++ b/src/cgame/cg_ents.c @@ -408,14 +408,11 @@ static void CG_Missile( centity_t *cent ) if( VectorNormalize2( es->pos.trDelta, ent.axis[ 0 ] ) == 0 ) ent.axis[ 0 ][ 2 ] = 1; - if( wi->wim[ weaponMode ].missileRotates ) - { - // spin as it moves - if( es->pos.trType != TR_STATIONARY ) - RotateAroundDirection( ent.axis, cg.time / 4 ); - else - RotateAroundDirection( ent.axis, es->time ); - } + // spin as it moves + if( es->pos.trType != TR_STATIONARY && wi->wim[ weaponMode ].missileRotates ) + RotateAroundDirection( ent.axis, cg.time / 4 ); + else + RotateAroundDirection( ent.axis, es->time ); } //only refresh if there is something to display |