mirror of
https://github.com/CorsixTH/CorsixTH.git
synced 2025-07-23 04:13:01 +02:00
Merge pull request #1905 from lewri/AnnualReportTaint
[RDY] Improve blue tint handling at load
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user