From 34917f8ff44b0224f7199e7f1ffd55ba588a9cf7 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Sun, 10 Jan 2010 21:14:37 +0000 Subject: Make sure TextDialogs get input precedence --- src/game.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index 3ef07dca..c9686232 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -64,6 +64,7 @@ #include "gui/setup.h" #include "gui/skilldialog.h" #include "gui/statuswindow.h" +#include "gui/textdialog.h" #include "gui/trade.h" #include "gui/viewport.h" #include "gui/windowmenu.h" @@ -523,7 +524,8 @@ void Game::handleInput() } // send straight to gui for certain windows - if (quitDialog || npcPostDialog->isVisible()) + if (quitDialog || TextDialog::isActive() || + npcPostDialog->isVisible()) { try { -- cgit v1.2.3-70-g09d2