Fixed reflections not disappearing if the parent event changes to a blank page

This commit is contained in:
Maruno17
2024-02-02 00:07:32 +00:00
parent e6fe242d4b
commit 86c92e7657
2 changed files with 2 additions and 15 deletions

View File

@@ -429,21 +429,7 @@ class Interpreter
result = (@parameters[2] == 0) ? (gold >= @parameters[1]) : (gold <= @parameters[1])
# when 8, 9, 10 # item, weapon, armor
when 11 # button
button = {
2 => Input::DOWN,
4 => Input::LEFT,
6 => Input::RIGHT,
8 => Input::UP,
11 => Input::ACTION,
12 => Input::BACK,
13 => Input::USE,
14 => Input::JUMPUP,
15 => Input::JUMPDOWN,
16 => Input::SPECIAL,
17 => Input::AUX1,
18 => Input::AUX2
}[@parameters[1]]
result = button && Input.press?(button)
result = Input.press?(@parameters[1])
when 12 # script
result = execute_script(@parameters[1])
end

View File

@@ -135,6 +135,7 @@ class Sprite_Character < RPG::Sprite
self.bitmap = nil
@cw = 0
@ch = 0
@reflection&.update
end
@character.sprite_size = [@cw, @ch]
end