summaryrefslogtreecommitdiff
path: root/src/net/playerhandler.cpp
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-02-25 10:29:34 -0700
committerIra Rice <irarice@gmail.com>2009-02-25 10:29:34 -0700
commit543166b9d50ebf06bfc83a32fb2bab3b366eb871 (patch)
treee50f86ef77cad8a5e2801b1aaba33632f5e215ef /src/net/playerhandler.cpp
parent0aaf301660a504d94f758ac8a4d50dc33c189fa7 (diff)
downloadmana-543166b9d50ebf06bfc83a32fb2bab3b366eb871.tar.gz
mana-543166b9d50ebf06bfc83a32fb2bab3b366eb871.tar.bz2
mana-543166b9d50ebf06bfc83a32fb2bab3b366eb871.tar.xz
mana-543166b9d50ebf06bfc83a32fb2bab3b366eb871.zip
Make sure that all dialogs are cleared on player death, not just the NPC
text dialog. Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/net/playerhandler.cpp')
-rw-r--r--src/net/playerhandler.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/net/playerhandler.cpp b/src/net/playerhandler.cpp
index c1e0d033..0637d784 100644
--- a/src/net/playerhandler.cpp
+++ b/src/net/playerhandler.cpp
@@ -82,14 +82,16 @@ namespace {
player_node->revive();
deathNotice = NULL;
npcIntegerDialog->setVisible(false);
+ npcListDialog->reset();
npcListDialog->setVisible(false);
+ npcStringDialog->setValue("");
npcStringDialog->setVisible(false);
npcTextDialog->clearText();
npcTextDialog->setVisible(false);
buyDialog->setVisible(false);
sellDialog->setVisible(false);
buySellDialog->setVisible(false);
- current_npc = 0;
+ current_npc = NULL;
}
} deathListener;
}