Reset cg.zoomed to false when you can no longer zoom

Gaming / Game Engines / Unvanquished - dolcetriade [gmail.com] - 2 June 2013 20:56 UTC



###

diff --git a/src/gamelogic/cgame/cg_view.c b/src/gamelogic/cgame/cg_view.c
index a1ad613..40170c6 100644
--- a/src/gamelogic/cgame/cg_view.c
+++ b/src/gamelogic/cgame/cg_view.c
@@ -1062,6 +1062,10 @@ static int CG_CalcFov( void )
}
}
}
+ else if ( cg.zoomed )
+ {
+ cg.zoomed = qfalse;
+ }
}

y = cg.refdef.height / tan( 0.5f * DEG2RAD( fov_y ) );

a28bcfd Reset cg.zoomed to false when you can no longer zoom
src/gamelogic/cgame/cg_view.c | 4 ++++
1 file changed, 4 insertions(+)

Upstream: github.com


  • Share