diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-01-21 18:33:56 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-01-21 18:53:25 +0300 |
commit | 5ce48d554ad93beea522d900a5175e7ec20d9356 (patch) | |
tree | 50b677761f56d79001e1ed0bde734a2129482a54 /src/net/ea/gamehandler.cpp | |
parent | bea6d5aa3f76759976dbf0c7dc0b8ff1e2d7fb1e (diff) | |
download | mv-5ce48d554ad93beea522d900a5175e7ec20d9356.tar.gz mv-5ce48d554ad93beea522d900a5175e7ec20d9356.tar.bz2 mv-5ce48d554ad93beea522d900a5175e7ec20d9356.tar.xz mv-5ce48d554ad93beea522d900a5175e7ec20d9356.zip |
Prevent possible double map load attempts.
Diffstat (limited to 'src/net/ea/gamehandler.cpp')
-rw-r--r-- | src/net/ea/gamehandler.cpp | 7 |
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(); + } } } |