diff --git a/scripts/DynamicLight.rb b/scripts/DynamicLight.rb index 2917af3..b89a45c 100644 --- a/scripts/DynamicLight.rb +++ b/scripts/DynamicLight.rb @@ -17,7 +17,6 @@ class DynamicLight return end - @light_sprite.ambient = $light.ambient_light $light.static_lights.each do |source| @light_sprite.add_static_source( source[0], @@ -27,6 +26,7 @@ class DynamicLight source[4] ) end + @light_sprite.ambient = $light.ambient_light end def dispose diff --git a/scripts/Game_Light.rb b/scripts/Game_Light.rb index 533a2c1..d24eb05 100644 --- a/scripts/Game_Light.rb +++ b/scripts/Game_Light.rb @@ -10,6 +10,7 @@ class Game_Light attr_accessor :update_remove_static_light attr_reader :dynamic_lights attr_reader :static_lights + attr_reader :ambient_light def initialize @done = false # deprecated @@ -104,9 +105,6 @@ class Game_Light @awaked = false end - def ambient_light - @ambient_light - end def ambient_light=(val) @ambient_light = val @update_ambient_light = true