diff --git a/binding-mri/filesystem-binding.cpp b/binding-mri/filesystem-binding.cpp index 7076326..4bc5e03 100644 --- a/binding-mri/filesystem-binding.cpp +++ b/binding-mri/filesystem-binding.cpp @@ -223,7 +223,7 @@ fileIntBindingInit() /* We overload the built-in 'Marshal::load()' function to silently * insert our utf8proc that ensures all read strings will be * UTF-8 encoded */ - // VALUE marsh = rb_const_get(rb_cObject, rb_intern("Marshal")); - // rb_define_alias(rb_singleton_class(marsh), "_mkxp_load_alias", "load"); - // _rb_define_module_function(marsh, "load", _marshalLoad); + VALUE marsh = rb_const_get(rb_cObject, rb_intern("Marshal")); + rb_define_alias(rb_singleton_class(marsh), "_mkxp_load_alias", "load"); + _rb_define_module_function(marsh, "load", _marshalLoad); } diff --git a/scripts/Game_Map.rb b/scripts/Game_Map.rb index 4df6f17..7df9174 100644 --- a/scripts/Game_Map.rb +++ b/scripts/Game_Map.rb @@ -498,7 +498,12 @@ class Game_Map end # Update map event for event in @events.values - event.update + if (event.list != nil && event.list.size > 1) || (event.x * 128 > $game_map.display_x - (10 * 128)) && + (event.x * 128 < $game_map.display_x + (30 * 128)) && + (event.y * 128 > ($game_map.display_y) - (10 * 128) && + (event.y * 128 < ($game_map.display_y) + (27 * 128))) + event.update + end end # Update common event for common_event in @common_events.values diff --git a/scripts/Window_MainMenu.rb b/scripts/Window_MainMenu.rb index b8c6706..28f8adc 100644 --- a/scripts/Window_MainMenu.rb +++ b/scripts/Window_MainMenu.rb @@ -103,6 +103,18 @@ class Window_MainMenu < Window_Selectable return end + + # Cancel menu + if Input.trigger?(Input::CANCEL) || + Input.trigger?(Input::MENU) || + Input.trigger?(Input::ITEMS) + unless Input.trigger?(Input::ITEMS) + $game_system.se_play($data_system.cancel_se) + end + @fade_out = true + return + end + # Select menu item if Input.trigger?(Input::ACTION) self.active = false @@ -129,15 +141,5 @@ class Window_MainMenu < Window_Selectable return end - # Cancel menu - if Input.trigger?(Input::CANCEL) || - Input.trigger?(Input::MENU) || - Input.trigger?(Input::ITEMS) - unless Input.trigger?(Input::ITEMS) - $game_system.se_play($data_system.cancel_se) - end - @fade_out = true - return - end end end