diff options
| author | MijaeLio <87155057+MijaeLio@users.noreply.github.com> | 2026-03-06 20:14:06 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-06 19:14:06 -0600 |
| commit | 16446265d555d21f564b5989611a05918728d643 (patch) | |
| tree | ad4ed8918f0090cf64bda4ac604d883a23ab1b48 /Minecraft.Client/Options.cpp | |
| parent | 216943716b8797fa1b9014f337b8ce7bbe50af4d (diff) | |
Add Render Distance option. (#675)
* FOV option without debug menu
Now located in Graphics section.
Based on the FOV thing from discord idk
* language
* render distance option for graphics menu
* oop
* swf files on media
* revert changes on language selector
* nvm it was actually easy to fix
* forgot this
* Final probably
Fixed visual bug and made the chunk updates depend to your view distance.
Diffstat (limited to 'Minecraft.Client/Options.cpp')
| -rw-r--r-- | Minecraft.Client/Options.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Minecraft.Client/Options.cpp b/Minecraft.Client/Options.cpp index fac7fe13..35857b89 100644 --- a/Minecraft.Client/Options.cpp +++ b/Minecraft.Client/Options.cpp @@ -238,6 +238,10 @@ void Options::set(const Options::Option *item, float fVal) { gamma = fVal; } + if (item == Option::RENDER_DISTANCE) + { + viewDistance = fVal; + } } void Options::toggle(const Options::Option *option, int dir) @@ -292,6 +296,7 @@ float Options::getProgressValue(const Options::Option *item) if (item == Option::MUSIC) return music; if (item == Option::SOUND) return sound; if (item == Option::SENSITIVITY) return sensitivity; + if (item == Option::RENDER_DISTANCE) return viewDistance; return 0; } |
