mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 21:39:57 +00:00
Conditional branch eval() fix
This commit is contained in:
parent
62418329d4
commit
ea80ecd155
2 changed files with 1 additions and 5 deletions
|
|
@ -276,7 +276,7 @@ class Interpreter
|
|||
when 11 # button
|
||||
result = (Input.press?(@parameters[1]))
|
||||
when 12 # script
|
||||
result = eval(@parameters[1])
|
||||
result = !!eval(@parameters[1])
|
||||
end
|
||||
# Store determinant results in hash
|
||||
@branch[@list[@index].indent] = result
|
||||
|
|
|
|||
|
|
@ -172,10 +172,6 @@ def plight_update_timer
|
|||
Script.tmp_v1 = ((Time.now - $game_oneshot.plight_timer) / 60).to_i
|
||||
end
|
||||
|
||||
def quit
|
||||
$scene = nil
|
||||
end
|
||||
|
||||
def activate_balcony?(ypos)
|
||||
$game_player.y == ypos &&
|
||||
$game_player.direction == 8 &&
|
||||
|
|
|
|||
Loading…
Reference in a new issue