From d97fabc2a9408a35ecfab733573b6b7592922f0d Mon Sep 17 00:00:00 2001
From: Andrei Karas <akaras@inbox.ru>
Date: Thu, 1 Mar 2012 02:43:22 +0300
Subject: Fix modal state for some dialogs.

---
 src/game.cpp                 | 3 ++-
 src/net/ea/playerhandler.cpp | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

(limited to 'src')

diff --git a/src/game.cpp b/src/game.cpp
index 33bfe232a..70d794ce8 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -1799,7 +1799,8 @@ void Game::changeMap(const std::string &mapPath)
     {
         logger->log("Error while loading %s", fullMap.c_str());
         new OkDialog(_("Could Not Load Map"), strprintf(
-            _("Error while loading %s"), fullMap.c_str()), DIALOG_ERROR);
+            _("Error while loading %s"), fullMap.c_str()),
+            DIALOG_ERROR, false);
     }
 
     if (mCurrentMap)
diff --git a/src/net/ea/playerhandler.cpp b/src/net/ea/playerhandler.cpp
index a0cddc219..bfbef0798 100644
--- a/src/net/ea/playerhandler.cpp
+++ b/src/net/ea/playerhandler.cpp
@@ -432,7 +432,7 @@ void PlayerHandler::processPlayerStatUpdate1(Net::MessageIn &msg)
     if (PlayerInfo::getAttribute(HP) == 0 && !deathNotice)
     {
         deathNotice = new OkDialog(_("Message"),
-            randomDeathMessage(), false);
+            randomDeathMessage(), DIALOG_OK, false);
         deathNotice->addActionListener(&deathListener);
         player_node->setAction(Being::DEAD);
     }
-- 
cgit v1.2.3-70-g09d2