summaryrefslogtreecommitdiff
path: root/src/net/ea
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-02-02 00:12:37 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-02 00:12:37 +0300
commit6930045257ca767dbfc095f95a440028d5b2213e (patch)
treec6e087fb14f380097f7a73d4706390887f186805 /src/net/ea
parent65cd527ac21a70617633d4023f9af6503931bbbb (diff)
downloadmanaverse-6930045257ca767dbfc095f95a440028d5b2213e.tar.gz
manaverse-6930045257ca767dbfc095f95a440028d5b2213e.tar.bz2
manaverse-6930045257ca767dbfc095f95a440028d5b2213e.tar.xz
manaverse-6930045257ca767dbfc095f95a440028d5b2213e.zip
Restore camera position after force closed npc dialog.
Diffstat (limited to 'src/net/ea')
-rw-r--r--src/net/ea/npchandler.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/net/ea/npchandler.cpp b/src/net/ea/npchandler.cpp
index b99e7154a..d35cc5d60 100644
--- a/src/net/ea/npchandler.cpp
+++ b/src/net/ea/npchandler.cpp
@@ -161,6 +161,8 @@ void NpcHandler::processNpcCommand(Net::MessageIn &msg)
}
break;
case 5: // close dialog
+ if (mDialog)
+ mDialog->restoreCamera();
npcHandler->closeDialog(npcId);
break;
case 6: // show avatar