diff options
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client.cpp b/src/client.cpp index 83ea42fa7..cf4d236fe 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -1667,11 +1667,12 @@ void Client::optionChanged(const std::string &name) settings.limitFps = fpsLimit > 0; WindowManager::setFramerate(fpsLimit); } - else if (name == "guialpha") + else if (name == "guialpha" || name == "enableGuiOpacity") { const float alpha = config.getFloatValue("guialpha"); settings.guiAlpha = alpha; - ImageHelper::setEnableAlpha(alpha != 1.0F); + ImageHelper::setEnableAlpha(alpha != 1.0F && + config.getBoolValue("enableGuiOpacity")); } else if (name == "gamma" || name == "enableGamma") { |