Merge pull request #1905 from lewri/AnnualReportTaint

[RDY] Improve blue tint handling at load
This commit is contained in:
Stephen E. Baker
2021-05-27 20:59:48 -04:00
committed by GitHub

View File

@@ -288,8 +288,10 @@ function LoadGame(data)
TheApp:afterLoad()
TheApp.world:resetAnimations()
TheApp.ui:onChangeResolution()
-- Possibly add the blueish tone if the game is currently paused.
if not TheApp.world.user_actions_allowed then
-- Check if the blueish tone should be applied.
-- Note: Blue filter control should be handled from world or ui, however when
-- loading a game we should let persistance do it.
if not TheApp.ui:checkForMustPauseWindows() and TheApp.world:isUserActionProhibited() then
TheApp.video:setBlueFilterActive(true)
end
end