mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-08-20 09:57:09 +00:00
forgot this
This commit is contained in:
parent
b369209149
commit
649545f3f2
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue