summaryrefslogtreecommitdiff
path: root/src/net/ea/maphandler.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-07-19 22:05:41 -0600
committerJared Adams <jaxad0127@gmail.com>2009-07-19 22:30:18 -0600
commit5141dc4a99b74358f2dd0f5f211c5069a630ce1b (patch)
tree647cfb05d179d61759ef3679482eb204a7853d34 /src/net/ea/maphandler.cpp
parent2e8fca7d471b4e2bf20735a0669e96722c000669 (diff)
downloadmana-client-5141dc4a99b74358f2dd0f5f211c5069a630ce1b.tar.gz
mana-client-5141dc4a99b74358f2dd0f5f211c5069a630ce1b.tar.bz2
mana-client-5141dc4a99b74358f2dd0f5f211c5069a630ce1b.tar.xz
mana-client-5141dc4a99b74358f2dd0f5f211c5069a630ce1b.zip
Merge StatusWindows
Also some other small merges
Diffstat (limited to 'src/net/ea/maphandler.cpp')
-rw-r--r--src/net/ea/maphandler.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/net/ea/maphandler.cpp b/src/net/ea/maphandler.cpp
index 6f8a9827..a466e022 100644
--- a/src/net/ea/maphandler.cpp
+++ b/src/net/ea/maphandler.cpp
@@ -82,16 +82,21 @@ void MapHandler::handleMessage(MessageIn &msg)
}
}
+#include <fstream>
+
void MapHandler::connect(LoginData *loginData)
{
// Send login infos
MessageOut outMsg(CMSG_MAP_SERVER_CONNECT);
outMsg.writeInt32(loginData->account_ID);
- outMsg.writeInt32(player_node->mCharId);
+ outMsg.writeInt32(player_node->getId());
outMsg.writeInt32(loginData->session_ID1);
outMsg.writeInt32(loginData->session_ID2);
outMsg.writeInt8((loginData->sex == GENDER_MALE) ? 1 : 0);
+ // Change the player's ID to the account ID to match what eAthena uses
+ player_node->setId(loginData->account_ID);
+
// We get 4 useless bytes before the real answer comes in (what are these?)
mNetwork->skip(4);
}