aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui.cpp')
-rw-r--r--src/ui.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ui.cpp b/src/ui.cpp
index be6c3f3..5f61f6d 100644
--- a/src/ui.cpp
+++ b/src/ui.cpp
@@ -964,9 +964,11 @@ EXIT:
dialogAdvance();
} else {
// left click uses item
- if (e.button.button & SDL_BUTTON_LEFT)
- if(!player->inv->usingi)
- player->inv->useCurrent();
+ if (e.button.button & SDL_BUTTON_LEFT) {
+ player->inv->currentAddInteract(currentWorld->getMobs());
+ player->inv->useCurrent();
+ }
+
}
if(mouse.x > player->loc.x && mouse.x < player->loc.x + player->width &&