summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 18467b0b..d7ce4314 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -635,10 +635,16 @@ void Game::handleInput()
{
setupWindow->action(gcn::ActionEvent(NULL, "cancel"));
}
+ // Proceed to the next dialog option, or close the window
else if (npcTextDialog->isVisible())
{
npcTextDialog->action(gcn::ActionEvent(NULL, "ok"));
}
+ // Choose the currently highlighted dialogue option
+ else if (npcListDialog->isVisible())
+ {
+ npcListDialog->action(gcn::ActionEvent(NULL, "ok"));
+ }
// Else, open the chat edit box
else
{