Remove commit_drop from status and loot UI since DropTarget already does that.
This commit is contained in:
parent
343f3a246f
commit
7a551cf83a
5 changed files with 6 additions and 20 deletions
|
@ -125,14 +125,4 @@ namespace gui {
|
|||
dbc::log("begin the loot drop");
|
||||
$selected_entity = world_entity;
|
||||
}
|
||||
|
||||
bool LootUI::commit_drop(DinkyECS::Entity gui_id) {
|
||||
if($gui.has<guecs::DropTarget>(gui_id)) {
|
||||
auto& drop = get_drop_target(gui_id);
|
||||
return drop.commit();
|
||||
} else {
|
||||
// NOTE: I think I need to cancel the drop or something?
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue