Merge remote-tracking branch 'mathewv/master'

This commit is contained in:
Vinyl Darkscratch 2016-12-17 22:53:21 -08:00
commit d16959f0e8
3 changed files with 21 additions and 14 deletions

View File

@ -223,7 +223,7 @@ fileIntBindingInit()
/* We overload the built-in 'Marshal::load()' function to silently /* We overload the built-in 'Marshal::load()' function to silently
* insert our utf8proc that ensures all read strings will be * insert our utf8proc that ensures all read strings will be
* UTF-8 encoded */ * UTF-8 encoded */
// VALUE marsh = rb_const_get(rb_cObject, rb_intern("Marshal")); VALUE marsh = rb_const_get(rb_cObject, rb_intern("Marshal"));
// rb_define_alias(rb_singleton_class(marsh), "_mkxp_load_alias", "load"); rb_define_alias(rb_singleton_class(marsh), "_mkxp_load_alias", "load");
// _rb_define_module_function(marsh, "load", _marshalLoad); _rb_define_module_function(marsh, "load", _marshalLoad);
} }

View File

@ -498,7 +498,12 @@ class Game_Map
end end
# Update map event # Update map event
for event in @events.values 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 end
# Update common event # Update common event
for common_event in @common_events.values for common_event in @common_events.values

View File

@ -103,6 +103,18 @@ class Window_MainMenu < Window_Selectable
return return
end 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 # Select menu item
if Input.trigger?(Input::ACTION) if Input.trigger?(Input::ACTION)
self.active = false self.active = false
@ -129,15 +141,5 @@ class Window_MainMenu < Window_Selectable
return return
end 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
end end