mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 13:29:54 +00:00
bugfix
rare bug where closing the game when spawning a footprint or footsplash would crash the game, both on exiting and then reloading.
This commit is contained in:
parent
54a35e7740
commit
0c9665ae4d
1 changed files with 12 additions and 4 deletions
|
|
@ -502,16 +502,24 @@ class Scene_Map
|
|||
# * Misc operations
|
||||
#--------------------------------------------------------------------------
|
||||
def new_footprint(direction, x, y)
|
||||
@spriteset.new_footprint(direction, x, y)
|
||||
if @spriteset != nil
|
||||
@spriteset.new_footprint(direction, x, y)
|
||||
end
|
||||
end
|
||||
def new_footsplash(direction, x, y)
|
||||
@spriteset.new_footsplash(direction, x, y)
|
||||
if @spriteset != nil
|
||||
@spriteset.new_footsplash(direction, x, y)
|
||||
end
|
||||
end
|
||||
def new_maptext(text, x, y)
|
||||
@spriteset.new_maptext(text, x, y)
|
||||
if @spriteset != nil
|
||||
@spriteset.new_maptext(text, x, y)
|
||||
end
|
||||
end
|
||||
def fix_footsplashes(xDelt, yDelt)
|
||||
@spriteset.fix_footsplashes(xDelt, yDelt)
|
||||
if @spriteset != nil
|
||||
@spriteset.fix_footsplashes(xDelt, yDelt)
|
||||
end
|
||||
end
|
||||
def menu_open?
|
||||
@menu.visible || @item_menu.visible
|
||||
|
|
|
|||
Loading…
Reference in a new issue