Fix view distance of 8-15 loading as 16 when you next start the game

This commit is contained in:
UnknownShadow200 2020-04-14 21:49:01 +10:00
parent c4e84d4ed9
commit 6589ab1beb
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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. */