summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2011-05-26 17:09:37 -0600
committerJared Adams <jaxad0127@gmail.com>2011-05-26 17:47:37 -0600
commit1b7652146d9e529193e9a1c23512fcc405031e90 (patch)
treef2d79a4e3c3ffbcd008e860918df99a2e633bb87 /src
parent8766ae676d2f6b1642bf80f0b8dbe62a93ced2f7 (diff)
downloadmana-1b7652146d9e529193e9a1c23512fcc405031e90.tar.gz
mana-1b7652146d9e529193e9a1c23512fcc405031e90.tar.bz2
mana-1b7652146d9e529193e9a1c23512fcc405031e90.tar.xz
mana-1b7652146d9e529193e9a1c23512fcc405031e90.zip
tmwAthena supports 9 characters per account
Diffstat (limited to 'src')
-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);
}