summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-03-01 02:43:22 +0300
committerAndrei Karas <akaras@inbox.ru>2012-03-01 02:43:22 +0300
commitd97fabc2a9408a35ecfab733573b6b7592922f0d (patch)
tree8edb9801f0ce4ca5274c3421d95cf417eaeb7820
parentf1e7947192d72d1807eb0497756a5d09c91a1766 (diff)
downloadmanaverse-d97fabc2a9408a35ecfab733573b6b7592922f0d.tar.gz
manaverse-d97fabc2a9408a35ecfab733573b6b7592922f0d.tar.bz2
manaverse-d97fabc2a9408a35ecfab733573b6b7592922f0d.tar.xz
manaverse-d97fabc2a9408a35ecfab733573b6b7592922f0d.zip
Fix modal state for some dialogs.
-rw-r--r--src/game.cpp3
-rw-r--r--src/net/ea/playerhandler.cpp2
2 files changed, 3 insertions, 2 deletions
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);
}