aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui.cpp')
-rw-r--r--src/ui.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ui.cpp b/src/ui.cpp
index 91da2e9..05b540e 100644
--- a/src/ui.cpp
+++ b/src/ui.cpp
@@ -262,6 +262,9 @@ namespace ui {
player->ground=false;
}
}
+ if(SDL_KEY==SDLK_q){
+ player->inv->itemToss();
+ }
if(SDL_KEY==SDLK_c){
dialogBox("","You pressed `c`, but nothing happened.");
}
@@ -287,6 +290,8 @@ namespace ui {
}
}
+ if(player->inv->tossd)player->inv->itemToss();
+
unsigned int i;
if(!dialogBoxExists&&AIpreaddr.size()){ // Flush preloaded AI functions if necessary
for(i=0;i<AIpreaddr.size();i++){