forked from Mirrors/openclonk
interaction menu: do OnClose-callbacks if the Clonk/object moves out of range (#1466)
parent
2280710d39
commit
7f5e85a82a
|
@ -189,6 +189,8 @@ func UpdateObjects(array new_objects)
|
||||||
// sub menus close automatically (and remove their dummy) due to a clever usage of OnClose
|
// sub menus close automatically (and remove their dummy) due to a clever usage of OnClose
|
||||||
current_menus[i].menu_object->RemoveObject();
|
current_menus[i].menu_object->RemoveObject();
|
||||||
current_menus[i] = nil;
|
current_menus[i] = nil;
|
||||||
|
// Notify the target of the now closed menu.
|
||||||
|
DoInteractionMenuClosedCallback(target);
|
||||||
}
|
}
|
||||||
|
|
||||||
current_objects = new_objects;
|
current_objects = new_objects;
|
||||||
|
|
Loading…
Reference in New Issue