mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Fixed reflections not disappearing if the parent event changes to a blank page
This commit is contained in:
@@ -429,21 +429,7 @@ class Interpreter
|
|||||||
result = (@parameters[2] == 0) ? (gold >= @parameters[1]) : (gold <= @parameters[1])
|
result = (@parameters[2] == 0) ? (gold >= @parameters[1]) : (gold <= @parameters[1])
|
||||||
# when 8, 9, 10 # item, weapon, armor
|
# when 8, 9, 10 # item, weapon, armor
|
||||||
when 11 # button
|
when 11 # button
|
||||||
button = {
|
result = Input.press?(@parameters[1])
|
||||||
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)
|
|
||||||
when 12 # script
|
when 12 # script
|
||||||
result = execute_script(@parameters[1])
|
result = execute_script(@parameters[1])
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -135,6 +135,7 @@ class Sprite_Character < RPG::Sprite
|
|||||||
self.bitmap = nil
|
self.bitmap = nil
|
||||||
@cw = 0
|
@cw = 0
|
||||||
@ch = 0
|
@ch = 0
|
||||||
|
@reflection&.update
|
||||||
end
|
end
|
||||||
@character.sprite_size = [@cw, @ch]
|
@character.sprite_size = [@cw, @ch]
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user