Fix light layer shake

This commit is contained in:
Mathew 2015-11-27 22:29:19 -05:00 committed by Mathew Velasquez
parent e9d5908bc6
commit 3f53cad601
1 changed files with 2 additions and 0 deletions

View File

@ -244,10 +244,12 @@ class Spriteset_Map
# Set screen color tone and shake position # Set screen color tone and shake position
@viewport.tone = $game_screen.tone + $game_map.ambient * (1.0 - @bulb.opacity / 255.0) @viewport.tone = $game_screen.tone + $game_map.ambient * (1.0 - @bulb.opacity / 255.0)
@viewport.ox = $game_screen.shake @viewport.ox = $game_screen.shake
@viewport_lights.ox = $game_screen.shake
# Set screen flash color # Set screen flash color
@viewport_flash.color = $game_screen.flash_color @viewport_flash.color = $game_screen.flash_color
# Update viewports # Update viewports
@viewport.update @viewport.update
@viewport_flash.update @viewport_flash.update
@viewport_lights.update
end end
end end