summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/net/logindata.h6
-rw-r--r--src/net/tmwa/loginhandler.cpp6
2 files changed, 4 insertions, 8 deletions
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);
}