mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-20 22:09:55 +00:00
ambient light saving fix
This commit is contained in:
parent
35831c1c8e
commit
35de3d2cd5
2 changed files with 2 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue