diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2013-04-15 22:15:31 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2013-04-15 22:15:31 +0200 |
commit | c53bc90dbaa876a86f762a3d864b1f920e2b8071 (patch) | |
tree | 1a8174f4d1745a4799210db970aa2230df622d34 /src/account-server/accounthandler.cpp | |
parent | b89e404f85358f2e3ff87d7731376dbeacdf9778 (diff) | |
parent | 81be8dc99ba7558c8915310eed095df43e3bdbf7 (diff) | |
download | manaserv-c53bc90dbaa876a86f762a3d864b1f920e2b8071.tar.gz manaserv-c53bc90dbaa876a86f762a3d864b1f920e2b8071.tar.bz2 manaserv-c53bc90dbaa876a86f762a3d864b1f920e2b8071.tar.xz manaserv-c53bc90dbaa876a86f762a3d864b1f920e2b8071.zip |
Merge branch 'master' into lpc2012
Conflicts:
src/account-server/accounthandler.cpp
src/game-server/character.cpp
Diffstat (limited to 'src/account-server/accounthandler.cpp')
-rw-r--r-- | src/account-server/accounthandler.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/account-server/accounthandler.cpp b/src/account-server/accounthandler.cpp index a65d8240..41b2c034 100644 --- a/src/account-server/accounthandler.cpp +++ b/src/account-server/accounthandler.cpp @@ -76,7 +76,8 @@ public: /** * Send the character data to the client. */ - static void sendCharacterData(AccountClient &client, const Character &ch); + static void sendCharacterData(AccountClient &client, + const CharacterData &ch); protected: /** @@ -271,7 +272,7 @@ void AccountHandler::computerDisconnected(NetComputer *comp) } void AccountHandler::sendCharacterData(AccountClient &client, - const Character &ch) + const CharacterData &ch) { MessageOut charInfo(APMSG_CHAR_INFO); charInfo.writeInt8(ch.getCharacterSlot()); @@ -760,7 +761,7 @@ void AccountHandler::handleCharacterCreateMessage(AccountClient &client, for (unsigned i = 0; i < mModifiableAttributes.size(); ++i) attributes[i] = 5; - Character *newCharacter = new Character(name); + CharacterData *newCharacter = new CharacterData(name); // Set the initial attributes provided by the client for (unsigned i = 0; i < mModifiableAttributes.size(); ++i) @@ -829,7 +830,7 @@ void AccountHandler::handleCharacterSelectMessage(AccountClient &client, return; } - Character *selectedChar = chars[slot]; + CharacterData *selectedChar = chars[slot]; std::string address; int port; |