summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2011-03-27 19:44:53 +0200
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2011-04-02 20:19:37 +0200
commitc013d7ba8cb97262d318fe30e1ef4da1aea19b82 (patch)
tree88e2577d32c8ce3777a6da302a931ccfcf07f25a /src/common
parentb8c8c307b5de2881fb3a2fa4f0cb8848bc5df23c (diff)
downloadmanaserv-c013d7ba8cb97262d318fe30e1ef4da1aea19b82.tar.gz
manaserv-c013d7ba8cb97262d318fe30e1ef4da1aea19b82.tar.bz2
manaserv-c013d7ba8cb97262d318fe30e1ef4da1aea19b82.tar.xz
manaserv-c013d7ba8cb97262d318fe30e1ef4da1aea19b82.zip
Some cleanups related to syncing from game to account server
* Remove SYNC_END_OF_BUFFER since the end of a message can already be identified by no more data being available. * Consistently prefix ++ rather than postfix ++ when incrementing mSyncMessages. * Made SYNC_BUFFER_SIZE into constants rather than defines, and moved them into the .cpp file since they're not used anywhere else. * Just use 1 and 0 to indicate online status. No point in writing it like 0x01 and 0x00. * Merged some duplicated documentation for AccountConnection::syncChanges. Reviewed-by: Jared Adams
Diffstat (limited to 'src/common')
-rw-r--r--src/common/manaserv_protocol.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/common/manaserv_protocol.h b/src/common/manaserv_protocol.h
index 337f2e27..8ff449e3 100644
--- a/src/common/manaserv_protocol.h
+++ b/src/common/manaserv_protocol.h
@@ -291,8 +291,7 @@ enum {
SYNC_CHARACTER_POINTS = 0x01, // D charId, D charPoints, D corrPoints
SYNC_CHARACTER_ATTRIBUTE = 0x02, // D charId, D attrId, DF base, DF mod
SYNC_CHARACTER_SKILL = 0x03, // D charId, B skillId, D skill value
- SYNC_ONLINE_STATUS = 0x04, // D charId, B 0x00 = offline, 0x01 = online
- SYNC_END_OF_BUFFER = 0xFF // shows, that the buffer ends here.
+ SYNC_ONLINE_STATUS = 0x04 // D charId, B 0 = offline, 1 = online
};
// Login specific return values