diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2015-12-02 08:09:02 -0500 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2015-12-02 08:09:02 -0500 |
commit | 1d995c34c871bdb48e35c083ef0d9027dc18d719 (patch) | |
tree | c1271faef4e76ae2ef9db1d3de7a32c5525344ad /src/entities.cpp | |
parent | 825d67be06c983d492de8350db64a2bebccaad82 (diff) |
killed threads
Diffstat (limited to 'src/entities.cpp')
-rw-r--r-- | src/entities.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/entities.cpp b/src/entities.cpp index 1e6fad5..3286784 100644 --- a/src/entities.cpp +++ b/src/entities.cpp @@ -339,18 +339,14 @@ void NPC::interact(){ //have the npc's interact back to the player } } -extern void waitForDialog(void); -void Object::interact(void){ +void Object::interact(void){ if(questObject && alive){ - ui::dialogBox("You",":Yes:No",pickupDialog); - while(ui::dialogBoxExists); - - if(ui::dialogOptChosen == 1 && alive){ + ui::waitForDialog(); + if(ui::dialogOptChosen == 1){ player->inv->addItem((ITEM_ID)(identifier), (char)1); alive = false; - return; - } + } }else{ alive = false; player->inv->addItem((ITEM_ID)(identifier), (char)1); |