summaryrefslogtreecommitdiff
path: root/src/cgame/cg_view.c
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2004-02-29 04:22:40 +0000
committerTim Angus <tim@ngus.net>2004-02-29 04:22:40 +0000
commit8de2853c89a624574402d82e541e2061cc121b4a (patch)
tree014f33b6f7cf74038ae353d9e3fd2588698e6ed0 /src/cgame/cg_view.c
parentd1318515a8a9d2b8369e136fa91ff1a1f159a168 (diff)
* Added zoom function to weapons
* Added code for reload binding * Turrents now give up an out of range target * Reactor cannot be used once destroyed * Reduced effectiveness of acid tube, turret and hive * Raised advanced build times * Reduced overall alien damage slightly * Raised mofo health (again) * Raised dragoon projectile damage
Diffstat (limited to 'src/cgame/cg_view.c')
-rw-r--r--src/cgame/cg_view.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cgame/cg_view.c b/src/cgame/cg_view.c
index e79c1d31..bb0816d9 100644
--- a/src/cgame/cg_view.c
+++ b/src/cgame/cg_view.c
@@ -742,14 +742,14 @@ static int CG_CalcFov( void )
}
// account for zooms
- zoomFov = cg_zoomFov.value;
+ zoomFov = BG_FindZoomFovForWeapon( cg.predictedPlayerState.weapon );
if ( zoomFov < 1 )
zoomFov = 1;
else if ( zoomFov > attribFov )
zoomFov = attribFov;
//TA: only do all the zoom stuff if the client CAN zoom
- if( BG_ClassHasAbility( cg.predictedPlayerState.stats[ STAT_PCLASS ], SCA_CANZOOM ) )
+ if( BG_WeaponCanZoom( cg.predictedPlayerState.weapon ) )
{
if ( cg.zoomed )
{