summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2009-11-02 22:06:18 +0200
committerJared Adams <jaxad0127@gmail.com>2009-11-02 14:04:25 -0700
commit08c65b8c721c70268fa0693a7aafc5b828c37162 (patch)
treefb7320717f9fdb53efeaccf06be810349f749ae6
parenta650c230152fb025b29a56ddb31eab40edd291d1 (diff)
downloadmana-08c65b8c721c70268fa0693a7aafc5b828c37162.tar.gz
mana-08c65b8c721c70268fa0693a7aafc5b828c37162.tar.bz2
mana-08c65b8c721c70268fa0693a7aafc5b828c37162.tar.xz
mana-08c65b8c721c70268fa0693a7aafc5b828c37162.zip
Fixing disconnection bug.
And revert commit 30db6c4375f932370d4fce0c5b35a0cab93a2a18.
-rw-r--r--src/main.cpp2
-rw-r--r--src/net/ea/charserverhandler.cpp1
-rw-r--r--src/net/ea/gamehandler.cpp2
3 files changed, 2 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 865588ff..18a28fa2 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -893,7 +893,7 @@ int main(int argc, char *argv[])
{
Net::getLoginHandler()->disconnect();
- state = STATE_GAME;
+ //state = STATE_GAME;
}
else if (state == STATE_CONNECT_SERVER && oldstate == STATE_CHOOSE_SERVER)
{
diff --git a/src/net/ea/charserverhandler.cpp b/src/net/ea/charserverhandler.cpp
index f2821792..f4b82aee 100644
--- a/src/net/ea/charserverhandler.cpp
+++ b/src/net/ea/charserverhandler.cpp
@@ -169,7 +169,6 @@ void CharServerHandler::handleMessage(MessageIn &msg)
mCharInfo->next();
} while (mCharInfo->getPos());
- sleep(3);
mCharInfo->select(slot);
mNetwork->disconnect();
state = STATE_CONNECT_GAME;
diff --git a/src/net/ea/gamehandler.cpp b/src/net/ea/gamehandler.cpp
index 597fd1da..97862883 100644
--- a/src/net/ea/gamehandler.cpp
+++ b/src/net/ea/gamehandler.cpp
@@ -75,7 +75,7 @@ void GameHandler::handleMessage(MessageIn &msg)
logger->log("Protocol: Player start position: (%d, %d), Direction: %d",
x, y, direction);
// Switch now or we'll have problems
- // state = STATE_GAME;
+ state = STATE_GAME;
player_node->setTileCoords(x, y);
} break;