From e5310e2a122012f6191216e926b98d1fddc01e39 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 22 Jul 2014 13:46:41 +0300 Subject: Fix yellow bar first time drawing. It was broken in previous commits. --- src/game.cpp | 2 ++ src/net/ea/playerhandler.cpp | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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") -- cgit v1.2.3-70-g09d2