diff options
author | Philipp Sehmisch <tmw@crushnet.org> | 2008-01-10 16:38:08 +0000 |
---|---|---|
committer | Philipp Sehmisch <tmw@crushnet.org> | 2008-01-10 16:38:08 +0000 |
commit | 36fc47a7dd3f21a7d7608ca3ab476cf2d84d33e0 (patch) | |
tree | 0641913bfa7090221435037b042d9e8e489c5e20 | |
parent | 9f27f17f66cf8bb1fa2f3716f65b64bf3f13b7a1 (diff) | |
download | manaserv-36fc47a7dd3f21a7d7608ca3ab476cf2d84d33e0.tar.gz manaserv-36fc47a7dd3f21a7d7608ca3ab476cf2d84d33e0.tar.bz2 manaserv-36fc47a7dd3f21a7d7608ca3ab476cf2d84d33e0.tar.xz manaserv-36fc47a7dd3f21a7d7608ca3ab476cf2d84d33e0.zip |
Fixed account server compiling.
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | src/game-server/character.cpp | 4 | ||||
-rw-r--r-- | src/serialize/characterdata.hpp | 1 |
3 files changed, 6 insertions, 1 deletions
@@ -4,6 +4,8 @@ src/game-server/itemmanager.cpp: Item types and weapon types are now identified by name instead of numbers in the items.xml. Cleaned out some nonsensical weapon types. + * src/serialize/characterdata.hpp, src/game-server/character.cpp: + Fixed account server compiling. 2008-01-07 Philipp Sehmisch <tmw@crushnet.org> diff --git a/src/game-server/character.cpp b/src/game-server/character.cpp index 694b4adf..c87f310f 100644 --- a/src/game-server/character.cpp +++ b/src/game-server/character.cpp @@ -51,6 +51,10 @@ Character::Character(MessageIn &msg): mDatabaseID = msg.readLong(); mName = msg.readString(); deserializeCharacterData(*this, msg); + for (int i = CHAR_ATTR_BEGIN; i < CHAR_ATTR_END; ++i) + { + modifiedAttribute(i); + } setSize(16); Inventory(this).initialize(); } diff --git a/src/serialize/characterdata.hpp b/src/serialize/characterdata.hpp index c9969b63..7d3a7fc1 100644 --- a/src/serialize/characterdata.hpp +++ b/src/serialize/characterdata.hpp @@ -74,7 +74,6 @@ void deserializeCharacterData(T &data, MessageIn &msg) for (int i = CHAR_ATTR_BEGIN; i < CHAR_ATTR_END; ++i) { data.setAttribute(i, msg.readByte()); - data.modifiedAttribute(i); } data.setMapId(msg.readShort()); |