From 6589ab1bebbb9e996e38a0f017437f68720fd20d Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Tue, 14 Apr 2020 21:49:01 +1000 Subject: [PATCH] Fix view distance of 8-15 loading as 16 when you next start the game --- src/Game.c | 2 +- src/Window.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Game.c b/src/Game.c index 636f2cb18..9eb89341e 100644 --- a/src/Game.c +++ b/src/Game.c @@ -349,7 +349,7 @@ static void LoadOptions(void) { Game_SimpleArmsAnim = Options_GetBool(OPT_SIMPLE_ARMS_ANIM, false); Game_ViewBobbing = Options_GetBool(OPT_VIEW_BOBBING, true); - Game_ViewDistance = Options_GetInt(OPT_VIEW_DISTANCE, 16, 4096, 512); + Game_ViewDistance = Options_GetInt(OPT_VIEW_DISTANCE, 8, 4096, 512); Game_UserViewDistance = Game_ViewDistance; Game_DefaultFov = Options_GetInt(OPT_FIELD_OF_VIEW, 1, 179, 70); diff --git a/src/Window.h b/src/Window.h index 9329b2c93..35a48fd62 100644 --- a/src/Window.h +++ b/src/Window.h @@ -142,7 +142,7 @@ void Window_UpdateRawMouse(void); void Window_DisableRawMouse(void); #ifdef CC_BUILD_GL -/* Initialises an OpenGL context that most closely matches the input arguments. */ +/* Initialises an OpenGL context. */ /* NOTE: You MUST have created the window beforehand, as the GL context is attached to the window. */ void GLContext_Init(void); /* Updates the OpenGL context after the window is resized. */