diff options
author | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-08-31 09:29:13 +0000 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-08-31 09:29:13 +0000 |
commit | e681c0024c1db3f93c501a0a9600371440986674 (patch) | |
tree | e54b5cb5870f1fad23929170072e7fcdbac71461 | |
parent | 99e14d41865086107ec9d69ce725d98d522e448a (diff) | |
download | manaserv-e681c0024c1db3f93c501a0a9600371440986674.tar.gz manaserv-e681c0024c1db3f93c501a0a9600371440986674.tar.bz2 manaserv-e681c0024c1db3f93c501a0a9600371440986674.tar.xz manaserv-e681c0024c1db3f93c501a0a9600371440986674.zip |
Cleaned a bit more.
-rw-r--r-- | src/account-server/accounthandler.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/account-server/accounthandler.cpp b/src/account-server/accounthandler.cpp index dd39dce5..8c69b066 100644 --- a/src/account-server/accounthandler.cpp +++ b/src/account-server/accounthandler.cpp @@ -505,15 +505,15 @@ AccountHandler::handleCharacterCreateMessage(AccountClient &computer, { reply.writeByte(ERRMSG_INVALID_ARGUMENT); } - else if (hairStyle < 0 || hairStyle > MAX_HAIRSTYLE_VALUE) + else if (hairStyle > MAX_HAIRSTYLE_VALUE) { reply.writeByte(CREATE_INVALID_HAIRSTYLE); } - else if (hairColor < 0 || hairColor > MAX_HAIRCOLOR_VALUE) + else if (hairColor > MAX_HAIRCOLOR_VALUE) { reply.writeByte(CREATE_INVALID_HAIRCOLOR); } - else if (gender < 0 || gender > MAX_GENDER_VALUE) + else if (gender > MAX_GENDER_VALUE) { reply.writeByte(CREATE_INVALID_GENDER); } @@ -721,9 +721,6 @@ AccountHandler::tokenMatched(AccountClient *computer, int accountID) void AccountHandler::deletePendingClient(AccountClient* computer) { - // Something might have changed since it was inserted - if (computer->status != CLIENT_QUEUED) return; - MessageOut msg(APMSG_CONNECTION_TIMEDOUT); computer->disconnect(msg); // The computer will be deleted when the disconnect event is processed |