summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-07-22 13:46:41 +0300
committerAndrei Karas <akaras@inbox.ru>2014-07-22 13:46:41 +0300
commite5310e2a122012f6191216e926b98d1fddc01e39 (patch)
treeb7511cb0bbf93adad3ec2cba70c422135ef91e18 /src
parentd569dc78b5b50c0e6cbe84e48164e5774fd36de7 (diff)
downloadManaVerse-e5310e2a122012f6191216e926b98d1fddc01e39.tar.gz
ManaVerse-e5310e2a122012f6191216e926b98d1fddc01e39.tar.bz2
ManaVerse-e5310e2a122012f6191216e926b98d1fddc01e39.tar.xz
ManaVerse-e5310e2a122012f6191216e926b98d1fddc01e39.zip
Fix yellow bar first time drawing.
It was broken in previous commits.
Diffstat (limited to 'src')
-rw-r--r--src/game.cpp2
-rw-r--r--src/net/ea/playerhandler.cpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp
index f282cbeae..f97b55d66 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -155,6 +155,8 @@ static void initEngines()
keyboard.update();
if (joystick)
joystick->update();
+
+ UpdateStatusListener::distributeEvent();
}
/**
diff --git a/src/net/ea/playerhandler.cpp b/src/net/ea/playerhandler.cpp
index 31e298fdc..28f9bf876 100644
--- a/src/net/ea/playerhandler.cpp
+++ b/src/net/ea/playerhandler.cpp
@@ -184,7 +184,6 @@ void PlayerHandler::processPlayerWarp(Net::MessageIn &msg)
if (viewport)
{
viewport->returnCamera();
- UpdateStatusListener::distributeEvent();
viewport->scrollBy(scrollOffsetX, scrollOffsetY);
}
BLOCK_END("PlayerHandler::processPlayerWarp")