diff options
author | Jared Adams <jaxad0127@gmail.com> | 2010-04-26 21:56:31 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2010-05-04 08:19:09 -0600 |
commit | 375ceb6c78f79e0144c2d63e0f9cda170288da8b (patch) | |
tree | 525f30b77566fdcdeb819a79269c375cccfc2cb9 /src/net/tmwa/playerhandler.cpp | |
parent | 22a7ac0b9ed82d09460d791016a990b327b61fc4 (diff) | |
download | Mana-375ceb6c78f79e0144c2d63e0f9cda170288da8b.tar.gz Mana-375ceb6c78f79e0144c2d63e0f9cda170288da8b.tar.bz2 Mana-375ceb6c78f79e0144c2d63e0f9cda170288da8b.tar.xz Mana-375ceb6c78f79e0144c2d63e0f9cda170288da8b.zip |
Clear NPC dialogs when the player dies
Reviewed-by: Freeyorp
Diffstat (limited to 'src/net/tmwa/playerhandler.cpp')
-rw-r--r-- | src/net/tmwa/playerhandler.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/net/tmwa/playerhandler.cpp b/src/net/tmwa/playerhandler.cpp index afa2c71b..5aab94b8 100644 --- a/src/net/tmwa/playerhandler.cpp +++ b/src/net/tmwa/playerhandler.cpp @@ -42,6 +42,7 @@ #include "net/messageout.h" #include "net/tmwa/protocol.h" +#include "net/tmwa/npchandler.h" #include "utils/stringutils.h" #include "utils/gettext.h" @@ -86,6 +87,10 @@ namespace { SellDialog::closeAll(); viewport->closePopupMenu(); + + TmwAthena::NpcHandler *handler = + static_cast<TmwAthena::NpcHandler*>(Net::getNpcHandler()); + handler->clearDialogs(); } } deathListener; |