summaryrefslogtreecommitdiffstats
path: root/src/serialize
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2008-01-07 22:07:10 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2008-01-07 22:07:10 +0000
commitc1d99cc23ca3108c74ad897c9a3485701aae1220 (patch)
tree013ad38134d92df7b4f3d55c9b36b6c047b68d70 /src/serialize
parentab00efb5c42b32a497fd56103dff7cc97b309ca8 (diff)
downloadmanaserv-c1d99cc23ca3108c74ad897c9a3485701aae1220.tar.gz
manaserv-c1d99cc23ca3108c74ad897c9a3485701aae1220.tar.xz
manaserv-c1d99cc23ca3108c74ad897c9a3485701aae1220.zip
Implemented some of the game mechanics we decided to use. The clients now only receive attribute change messages when the attribute actually changed. Left the HP mechanics as they are for now (although I consider them flawed).
Diffstat (limited to 'src/serialize')
-rw-r--r--src/serialize/characterdata.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/serialize/characterdata.hpp b/src/serialize/characterdata.hpp
index 7d3a7fc..c9969b6 100644
--- a/src/serialize/characterdata.hpp
+++ b/src/serialize/characterdata.hpp
@@ -74,6 +74,7 @@ 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());