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:
mshirt 2017-12-29 15:15:01 -08:00
parent 54a35e7740
commit 0c9665ae4d

View file

@ -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