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
|
@ -147,7 +147,9 @@ namespace gui {
|
|||
auto gui_id = std::any_cast<DinkyECS::Entity>(data);
|
||||
|
||||
if($grab_source) {
|
||||
if($status_ui.commit_drop(gui_id)) {
|
||||
auto& drop = $status_ui.get_drop_target(gui_id);
|
||||
|
||||
if(drop.commit()) {
|
||||
$loot_ui.commit_grab(*$grab_source);
|
||||
$grab_source = std::nullopt;
|
||||
}
|
||||
|
@ -192,7 +194,9 @@ namespace gui {
|
|||
auto gui_id = std::any_cast<DinkyECS::Entity>(data);
|
||||
|
||||
if($grab_source) {
|
||||
if($loot_ui.commit_drop(gui_id)) {
|
||||
auto& drop = $loot_ui.get_drop_target(gui_id);
|
||||
|
||||
if(drop.commit()) {
|
||||
$status_ui.commit_grab(*$grab_source);
|
||||
$grab_source = std::nullopt;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue