summary refs log tree commit diff
path: root/src/GameDraw.cpp
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2021-09-12 00:28:36 +0700
committerNguyễn Gia Phong <mcsinyx@disroot.org>2021-09-12 00:31:47 +0700
commit62445a15b14a059032d7c0c3e16a959d25bff604 (patch)
tree4c0aba823939c3d266bc447dfe6c51fa4f2c0f1a /src/GameDraw.cpp
parente3614a94b984d12baa7f4f6010b6707805ce0928 (diff)
downloadblackshades-2.2.0.tar.gz
Make window resizable 2.2.0
Diffstat (limited to 'src/GameDraw.cpp')
-rw-r--r--src/GameDraw.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/GameDraw.cpp b/src/GameDraw.cpp
index 07905e6..9612a5b 100644
--- a/src/GameDraw.cpp
+++ b/src/GameDraw.cpp
@@ -720,14 +720,12 @@ int Game::DrawGLScene(void)
 
 			glEnable(GL_LIGHT0);
 
-			//Change fov if zooming with scope
-
-			if(!zoom)ReSizeGLScene(90,.1);
-
-			if(zoom)ReSizeGLScene(10,.6);
-
+			// Change fov if zooming with scope
+			if (zoom)
+				ReSizeGLScene(10.0f, 0.6f);
+			else
+				ReSizeGLScene(90.0f, 0.1f);
 			nocolors=0;
-
 		}
 
 		if(visions==1){