summaryrefslogtreecommitdiff
path: root/src/char/char.c
diff options
context:
space:
mode:
authorprotimus <protimus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-04-03 21:18:23 +0000
committerprotimus <protimus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-04-03 21:18:23 +0000
commit2b6c40327a3e05a18bbfabd319a0735d75fbb8e9 (patch)
tree3f0a2b66c6a93c0397266f0fabc844fe8c121dee /src/char/char.c
parentb81e90566e729d2020e8f09a1d1bc86d25bad315 (diff)
downloadhercules-2b6c40327a3e05a18bbfabd319a0735d75fbb8e9.tar.gz
hercules-2b6c40327a3e05a18bbfabd319a0735d75fbb8e9.tar.bz2
hercules-2b6c40327a3e05a18bbfabd319a0735d75fbb8e9.tar.xz
hercules-2b6c40327a3e05a18bbfabd319a0735d75fbb8e9.zip
Cleanup of conditions for old clients.
- No one use versions as old, besides being advised to keep up to date. - Informations of packets will be maintained, the cleanup is just for conditions. Please do not remove old packet information, it is useful for future searches. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15828 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char/char.c')
-rw-r--r--src/char/char.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/char/char.c b/src/char/char.c
index df0a9add5..b3defd7f0 100644
--- a/src/char/char.c
+++ b/src/char/char.c
@@ -1622,15 +1622,10 @@ int mmo_char_tobuf(uint8* buffer, struct mmo_charstatus* p)
WBUFL(buf,32) = p->karma;
WBUFL(buf,36) = p->manner;
WBUFW(buf,40) = min(p->status_point, INT16_MAX);
-#if PACKETVER > 20081217
WBUFL(buf,42) = p->hp;
WBUFL(buf,46) = p->max_hp;
offset+=4;
buf = WBUFP(buffer,offset);
-#else
- WBUFW(buf,42) = min(p->hp, INT16_MAX);
- WBUFW(buf,44) = min(p->max_hp, INT16_MAX);
-#endif
WBUFW(buf,46) = min(p->sp, INT16_MAX);
WBUFW(buf,48) = min(p->max_sp, INT16_MAX);
WBUFW(buf,50) = DEFAULT_WALK_SPEED; // p->speed;
@@ -1656,10 +1651,8 @@ int mmo_char_tobuf(uint8* buffer, struct mmo_charstatus* p)
WBUFB(buf,102) = min(p->dex, UINT8_MAX);
WBUFB(buf,103) = min(p->luk, UINT8_MAX);
WBUFW(buf,104) = p->slot;
-#if PACKETVER >= 20061023
WBUFW(buf,106) = ( p->rename > 0 ) ? 0 : 1;
offset += 2;
-#endif
#if (PACKETVER >= 20100720 && PACKETVER <= 20100727) || PACKETVER >= 20100803
mapindex_getmapname_ext(mapindex_id2name(p->last_point.map), (char*)WBUFP(buf,108));
offset += MAP_NAME_LENGTH_EXT;