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:
parent
730d514916
commit
d9e6cf4c0d
1 changed files with 0 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue