Fixing issue where niko's lightmap clips everything
On maps where the ambient is set via an event/script, niko's lightbulb clips through anything solid. This case here seems to be the culprit.
This commit is contained in:
parent
1e6665cf27
commit
851a12ada3
|
|
@ -30,7 +30,7 @@ class Sprite_Character
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
def update
|
def update
|
||||||
# Choose the appropriate light sprite
|
# Choose the appropriate light sprite
|
||||||
@light_sprite.viewport = ($game_map.ambient.blank? && $game_screen.tone.blank?) ? @viewport : @light_viewport
|
@light_sprite.viewport = ($game_screen.tone.blank?) ? @viewport : @light_viewport
|
||||||
# Update sprites
|
# Update sprites
|
||||||
@sprite.update
|
@sprite.update
|
||||||
@light_sprite.update
|
@light_sprite.update
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue