remove allow_undo child being added to [set_menu_item][command] tags

It is documented to have effect only in moveto event, not menu item X
events, and this matches the occurances of allow_undo in the codebase.
This commit is contained in:
Anonymissimus 2012-01-29 22:52:14 +00:00
parent 730d514916
commit d9e6cf4c0d

View file

@ -3026,9 +3026,6 @@ static void commit_wmi_commands() {
mref->command["first_time_only"] = false;
if(has_current_handler) {
if(is_empty_command) {
mref->command.add_child("allow_undo");
}
foreach(game_events::event_handler& hand, event_handlers) {
if(hand.is_menu_item() && hand.matches_name(mref->name)) {
LOG_NG << "changing command for " << mref->name << " to:\n" << *wcc.second;