From 1b7652146d9e529193e9a1c23512fcc405031e90 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Thu, 26 May 2011 17:09:37 -0600 Subject: tmwAthena supports 9 characters per account --- src/net/logindata.h | 6 +++--- src/net/tmwa/loginhandler.cpp | 6 +----- 2 files changed, 4 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/net/logindata.h b/src/net/logindata.h index dc2ef52b..4d8fc043 100644 --- a/src/net/logindata.h +++ b/src/net/logindata.h @@ -31,7 +31,7 @@ class LoginData public: LoginData() { - resetCharacterSlots(); + characterSlots = 3; } std::string username; @@ -50,11 +50,11 @@ public: unsigned short characterSlots; /**< The number of character slots */ /** - * Initialize character slots to 3 for TmwAthena compatibility + * Initialize character slots to 3 for backwards compatibility */ void resetCharacterSlots() { - characterSlots = 3; // Default value, used for TmwAthena. + characterSlots = 3; } void clear() diff --git a/src/net/tmwa/loginhandler.cpp b/src/net/tmwa/loginhandler.cpp index e03ff042..0edc6ae6 100644 --- a/src/net/tmwa/loginhandler.cpp +++ b/src/net/tmwa/loginhandler.cpp @@ -244,11 +244,7 @@ void LoginHandler::getRegistrationDetails() void LoginHandler::loginAccount(LoginData *loginData) { - // Since we're attempting to use the tAthena protocol, - // let's reset the character slots to the good value, - // in case we just logged out a Manaserv server - // with a different config. - loginData->resetCharacterSlots(); + loginData->characterSlots = 9; sendLoginRegister(loginData->username, loginData->password); } -- cgit v1.2.3-70-g09d2