From 43fd14270a0f27b2cdd0195f56b6ed4daaa036ef Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 30 Aug 2015 00:11:07 +1000 Subject: [PATCH] Fix vortex trying to zoom while switching weapons --- qcsrc/client/view.qc | 1 + 1 file changed, 1 insertion(+) diff --git a/qcsrc/client/view.qc b/qcsrc/client/view.qc index 7cf7af5f7..fb8b5ee7f 100644 --- a/qcsrc/client/view.qc +++ b/qcsrc/client/view.qc @@ -131,6 +131,7 @@ vector GetCurrentFov(float fov) zoomdir = button_zoom; if(hud == HUD_NORMAL) + if(switchweapon == activeweapon) if((activeweapon == WEP_VORTEX.m_id && vortex_scope) || (activeweapon == WEP_RIFLE.m_id && rifle_scope)) // do NOT use switchweapon here zoomdir += button_attack2; if(spectatee_status > 0 || isdemo()) -- 2.39.2