aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2015-10-29 15:51:07 -0400
committerClyne Sullivan <tullivan99@gmail.com>2015-10-29 15:51:07 -0400
commit9ab6025a0cc3ab31c476f0b478ac69bfadd7f670 (patch)
tree2a4f30084ea02a8dfc80f63cf11caa97c8dd93f8 /src/ui.cpp
parent9133b5b379f565ca9f268b63864155051c464cb1 (diff)
inventory visuals / item drop (Q)
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++){