fix: Dynamic room lighting must be available only in developer mode

This commit is contained in:
Vsevolod Kremianskii 2021-02-16 10:20:17 +07:00
parent 35191458bb
commit c42c418f9f

View file

@ -813,8 +813,11 @@ bool Game::handleKeyDown(const SDL_KeyboardEvent &event) {
break;
}
case SDLK_F4:
setFeatureEnabled(Feature::DynamicRoomLighting, !isFeatureEnabled(Feature::DynamicRoomLighting));
return true;
if (_options.developer) {
setFeatureEnabled(Feature::DynamicRoomLighting, !isFeatureEnabled(Feature::DynamicRoomLighting));
return true;
}
break;
case SDLK_LEFTBRACKET:
_sceneGraph.setExposure(glm::max(0.25f, _sceneGraph.exposure() - 0.25f));