Make the AIM_CLICK handler in FSM properly deal with an item already there while looting or not. Closes #56.
This commit is contained in:
parent
87e69bebde
commit
584c4e9f67
6 changed files with 41 additions and 25 deletions
|
@ -127,8 +127,13 @@ namespace gui {
|
|||
update();
|
||||
}
|
||||
|
||||
bool LootUI::drop_item(DinkyECS::Entity item_id) {
|
||||
bool dropped = System::drop_item($level, item_id);
|
||||
if(dropped) update();
|
||||
return dropped;
|
||||
}
|
||||
|
||||
bool LootUI::mouse(float x, float y, bool hover) {
|
||||
return $gui.mouse(x, y, hover);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue