diff options
Diffstat (limited to 'src/account-server/accountclient.cpp')
-rw-r--r-- | src/account-server/accountclient.cpp | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/src/account-server/accountclient.cpp b/src/account-server/accountclient.cpp index 04bd6d59..145a18f3 100644 --- a/src/account-server/accountclient.cpp +++ b/src/account-server/accountclient.cpp @@ -23,13 +23,10 @@ #include "account-server/accountclient.hpp" -#include "account-server/accounthandler.hpp" - AccountClient::AccountClient(ENetPeer *peer): NetComputer(peer), status(CLIENT_LOGIN), - mAccount(NULL), - mCharacter(NULL) + mAccount(NULL) { } @@ -38,27 +35,14 @@ AccountClient::~AccountClient() unsetAccount(); } - void AccountClient::setAccount(Account *acc) { unsetAccount(); mAccount = acc; } -void AccountClient::setCharacter(Character *ch) -{ - unsetCharacter(); - mCharacter = ch; -} - void AccountClient::unsetAccount() { - unsetCharacter(); delete mAccount; mAccount = NULL; } - -void AccountClient::unsetCharacter() -{ - mCharacter = NULL; -} |