diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2015-10-29 15:51:07 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2015-10-29 15:51:07 -0400 |
commit | 9ab6025a0cc3ab31c476f0b478ac69bfadd7f670 (patch) | |
tree | 2a4f30084ea02a8dfc80f63cf11caa97c8dd93f8 /src/ui.cpp | |
parent | 9133b5b379f565ca9f268b63864155051c464cb1 (diff) |
inventory visuals / item drop (Q)
Diffstat (limited to 'src/ui.cpp')
-rw-r--r-- | src/ui.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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++){ |