summaryrefslogtreecommitdiff
path: root/src/net/ea
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-02-29 04:53:49 +0300
committerAndrei Karas <akaras@inbox.ru>2012-02-29 04:54:12 +0300
commite70d551884c0e11408176086a25d359987090003 (patch)
treeb24bf60781ffa5ce188b268445fdecc125e35fe6 /src/net/ea
parent8e6dd0db3a9e1bfb15068098029c25c334ca8f67 (diff)
downloadmv-e70d551884c0e11408176086a25d359987090003.tar.gz
mv-e70d551884c0e11408176086a25d359987090003.tar.bz2
mv-e70d551884c0e11408176086a25d359987090003.tar.xz
mv-e70d551884c0e11408176086a25d359987090003.zip
Allow open conext menu from free tile if in free camera mode.
Menu is same as in minimap.
Diffstat (limited to 'src/net/ea')
-rw-r--r--src/net/ea/playerhandler.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/net/ea/playerhandler.cpp b/src/net/ea/playerhandler.cpp
index ddcf7d9c0..df28b4c1c 100644
--- a/src/net/ea/playerhandler.cpp
+++ b/src/net/ea/playerhandler.cpp
@@ -28,6 +28,7 @@
#include "playerinfo.h"
#include "units.h"
+#include "gui/ministatuswindow.h"
#include "gui/okdialog.h"
#include "gui/skilldialog.h"
#include "gui/statuswindow.h"
@@ -257,7 +258,12 @@ void PlayerHandler::processPlayerWarp(Net::MessageIn &msg)
static_cast<int>(scrollOffsetY));
if (viewport)
+ {
+ viewport->returnCamera();
+ if (miniStatusWindow)
+ miniStatusWindow->updateStatus();
viewport->scrollBy(scrollOffsetX, scrollOffsetY);
+ }
}
void PlayerHandler::processPlayerStatUpdate1(Net::MessageIn &msg)