summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-04-02 21:25:25 -0600
committerJared Adams <jaxad0127@gmail.com>2009-04-02 21:25:25 -0600
commit4916370e6130bfee7eb9ae486f03391d2214ecf4 (patch)
tree69311c3f543b538f4cd8e619d367d3ef22f6e43c /src/main.cpp
parent22f19d7a201abe8f6df69b82ebd6dce55c3b1655 (diff)
downloadmana-client-4916370e6130bfee7eb9ae486f03391d2214ecf4.tar.gz
mana-client-4916370e6130bfee7eb9ae486f03391d2214ecf4.tar.bz2
mana-client-4916370e6130bfee7eb9ae486f03391d2214ecf4.tar.xz
mana-client-4916370e6130bfee7eb9ae486f03391d2214ecf4.zip
Make eAthena's CharHandler
Also add ping to MapHandler and fill in eAthena's MapHandler's connect method.
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 05518e19..97cf39d4 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -826,19 +826,14 @@ static void mapLogin(Network *network, LoginData *loginData)
logger->log("Trying to connect to map server...");
logger->log("Map: %s", map_path.c_str());
+ MapHandler *mapHandler = new MapHandler;
network->connect(loginData->hostname, loginData->port);
//network->registerHandler(mapHandler);
- network->registerHandler(new MapHandler);
+ network->registerHandler(mapHandler);
- // Send login infos
- MessageOut outMsg(0x0072);
- outMsg.writeInt32(loginData->account_ID);
- outMsg.writeInt32(player_node->mCharId);
- outMsg.writeInt32(loginData->session_ID1);
- outMsg.writeInt32(loginData->session_ID2);
- outMsg.writeInt8(loginData->sex);
+ mapHandler->connect(loginData);
- // We get 4 useless bytes before the real answer comes in
+ // We get 4 useless bytes before the real answer comes in (what are these?)
network->skip(4);
}