summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-01-21 18:33:56 +0300
committerAndrei Karas <akaras@inbox.ru>2012-01-21 18:53:25 +0300
commit5ce48d554ad93beea522d900a5175e7ec20d9356 (patch)
tree50b677761f56d79001e1ed0bde734a2129482a54 /src/net
parentbea6d5aa3f76759976dbf0c7dc0b8ff1e2d7fb1e (diff)
downloadplus-5ce48d554ad93beea522d900a5175e7ec20d9356.tar.gz
plus-5ce48d554ad93beea522d900a5175e7ec20d9356.tar.bz2
plus-5ce48d554ad93beea522d900a5175e7ec20d9356.tar.xz
plus-5ce48d554ad93beea522d900a5175e7ec20d9356.zip
Prevent possible double map load attempts.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/ea/gamehandler.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/net/ea/gamehandler.cpp b/src/net/ea/gamehandler.cpp
index 61ad8bfdb..b7566e271 100644
--- a/src/net/ea/gamehandler.cpp
+++ b/src/net/ea/gamehandler.cpp
@@ -52,9 +52,14 @@ void GameHandler::processEvent(Mana::Channels channel,
if (channel == Mana::CHANNEL_GAME)
{
if (event.getName() == Mana::EVENT_ENGINESINITALIZED)
- Game::instance()->changeMap(mMap);
+ {
+ if (mMap != "")
+ Game::instance()->changeMap(mMap);
+ }
else if (event.getName() == Mana::EVENT_MAPLOADED)
+ {
mapLoadedEvent();
+ }
}
}