ambient light saving fix

This commit is contained in:
Issac332 2026-07-03 11:49:36 +03:00
parent 35831c1c8e
commit 35de3d2cd5
2 changed files with 2 additions and 4 deletions

View file

@ -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

View file

@ -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