diff options
author | Eugenio Favalli <elvenprogrammer@gmail.com> | 2006-08-14 08:36:16 +0000 |
---|---|---|
committer | Eugenio Favalli <elvenprogrammer@gmail.com> | 2006-08-14 08:36:16 +0000 |
commit | c79bf8c82f0a38b574b83be2484eb347852cd833 (patch) | |
tree | bf13ca5f0ff3f0413bab52f89ba95e705ffce745 /src/net/loginhandler.cpp | |
parent | 9e6862623370f53d1b78e4bd167152b840e28884 (diff) | |
download | mana-c79bf8c82f0a38b574b83be2484eb347852cd833.tar.gz mana-c79bf8c82f0a38b574b83be2484eb347852cd833.tar.bz2 mana-c79bf8c82f0a38b574b83be2484eb347852cd833.tar.xz mana-c79bf8c82f0a38b574b83be2484eb347852cd833.zip |
Completed porting of character creation/deletion, fixed some issues with network code.
Diffstat (limited to 'src/net/loginhandler.cpp')
-rw-r--r-- | src/net/loginhandler.cpp | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/src/net/loginhandler.cpp b/src/net/loginhandler.cpp index 324c33cd..27d8eed5 100644 --- a/src/net/loginhandler.cpp +++ b/src/net/loginhandler.cpp @@ -27,7 +27,6 @@ #include "network.h" #include "protocol.h" -#include "../localplayer.h" #include "../log.h" #include "../logindata.h" #include "../main.h" @@ -52,21 +51,6 @@ void LoginHandler::handleMessage(MessageIn *msg) // Successful login if (errMsg == ERRMSG_OK) { - unsigned char charNumber = msg->readByte(); - printf("Account has %i characters:\n", charNumber); - for (unsigned int i = 0; i < charNumber; i++) { - // Create a temp empty player to show up in character - // selection dialog - LocalPlayer *temp = new LocalPlayer(0, 0, 0); - temp->setName(msg->readString()); - temp->setSex(msg->readByte()); - temp->setHairStyle(msg->readByte()); - temp->setHairColor(msg->readByte()); - temp->mLevel = msg->readByte(); - temp->mGp = msg->readShort(); - mCharInfo->select(i); - mCharInfo->setEntry(temp); - } state = CHAR_SELECT_STATE; } // Login failed @@ -102,7 +86,8 @@ void LoginHandler::handleMessage(MessageIn *msg) state = ACCOUNT_STATE; } // Registration failed - else { + else + { switch (errMsg) { case REGISTER_INVALID_VERSION: errorMessage = "Client has an insufficient version number to login."; |