diff options
author | IronClawTrem <louie.nutman@gmail.com> | 2020-02-22 00:10:50 +0000 |
---|---|---|
committer | IronClawTrem <louie.nutman@gmail.com> | 2020-02-22 00:10:50 +0000 |
commit | 09c8ff57b88755f557bab5cb1aa5168fb6d78cb2 (patch) | |
tree | 2ef7fe7928bdb087df6ca0183d142d0b95491701 /src/cgame | |
parent | 758c6cd063cd59eddbf52ef5de480f1917acbd81 (diff) |
remove zoom sounds for lasgun
Diffstat (limited to 'src/cgame')
-rw-r--r-- | src/cgame/cg_weapons.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cgame/cg_weapons.c b/src/cgame/cg_weapons.c index ca0115f..2f437f0 100644 --- a/src/cgame/cg_weapons.c +++ b/src/cgame/cg_weapons.c @@ -859,7 +859,7 @@ void CG_AddPlayerWeapon( refEntity_t *parent, playerState_t *ps, centity_t *cent } //Zoom in / out sound - if( ( weaponNum == WP_LAS_GUN || weaponNum == WP_MASS_DRIVER ) && + if( ( weaponNum == WP_MASS_DRIVER ) && ( cent->currentState.eFlags & EF_ZOOM ) && !cent->zoomed ) { trap_S_StartSound( cent->lerpOrigin, cent->currentState.number, @@ -873,7 +873,7 @@ void CG_AddPlayerWeapon( refEntity_t *parent, playerState_t *ps, centity_t *cent cg.time + cg.time - cg.zoomTime - ZOOM_TIME ); } } - else if ( ( weaponNum == WP_LAS_GUN || weaponNum == WP_MASS_DRIVER ) && + else if ( ( weaponNum == WP_MASS_DRIVER ) && !( cent->currentState.eFlags & EF_ZOOM ) && cent->zoomed ) { trap_S_StartSound( cent->lerpOrigin, cent->currentState.number, |