summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cgame/cg_view.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cgame/cg_view.c b/src/cgame/cg_view.c
index 0f6b7751..85d5bea9 100644
--- a/src/cgame/cg_view.c
+++ b/src/cgame/cg_view.c
@@ -943,7 +943,8 @@ static int CG_CalcFov( void )
if( !( cmd.buttons & BUTTON_ATTACK2 ) )
{
cg.zoomed = qfalse;
- cg.zoomTime = cg.time;
+ cg.zoomTime = MIN( cg.time,
+ cg.time + cg.time - cg.zoomTime - ZOOM_TIME );
}
}
else
@@ -959,7 +960,8 @@ static int CG_CalcFov( void )
if( cmd.buttons & BUTTON_ATTACK2 )
{
cg.zoomed = qtrue;
- cg.zoomTime = cg.time;
+ cg.zoomTime = MIN( cg.time,
+ cg.time + cg.time - cg.zoomTime - ZOOM_TIME );
}
}
}