diff options
author | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2021-09-12 00:28:36 +0700 |
---|---|---|
committer | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2021-09-12 00:31:47 +0700 |
commit | 62445a15b14a059032d7c0c3e16a959d25bff604 (patch) | |
tree | 4c0aba823939c3d266bc447dfe6c51fa4f2c0f1a /src/GameDraw.cpp | |
parent | e3614a94b984d12baa7f4f6010b6707805ce0928 (diff) | |
download | blackshades-2.2.0.tar.gz |
Make window resizable 2.2.0
Diffstat (limited to 'src/GameDraw.cpp')
-rw-r--r-- | src/GameDraw.cpp | 12 |
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){ |