summaryrefslogtreecommitdiff
path: root/src/net/eathena/playerrecv.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-09-12 17:09:51 +0300
committerAndrei Karas <akaras@inbox.ru>2016-09-12 17:09:51 +0300
commit2507f262167386f83b46c4726f5d66fb99dad104 (patch)
treed5309c11216b94a8ac6c097da618e76bb984d95d /src/net/eathena/playerrecv.cpp
parente5598d8183f8b5a015bade5d61a41e054311d5ec (diff)
downloadplus-2507f262167386f83b46c4726f5d66fb99dad104.tar.gz
plus-2507f262167386f83b46c4726f5d66fb99dad104.tar.bz2
plus-2507f262167386f83b46c4726f5d66fb99dad104.tar.xz
plus-2507f262167386f83b46c4726f5d66fb99dad104.zip
Add packet SMSG_PLAYER_HEAL 0x0a27.
Diffstat (limited to 'src/net/eathena/playerrecv.cpp')
-rw-r--r--src/net/eathena/playerrecv.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/net/eathena/playerrecv.cpp b/src/net/eathena/playerrecv.cpp
index 8f223363c..03909943e 100644
--- a/src/net/eathena/playerrecv.cpp
+++ b/src/net/eathena/playerrecv.cpp
@@ -251,7 +251,11 @@ void PlayerRecv::processPlayerHeal(Net::MessageIn &msg)
return;
const int type = msg.readInt16("var id");
- const int amount = msg.readInt16("value");
+ int amount;
+ if (msg.getVersion() >= 20150513)
+ amount = msg.readInt32("value");
+ else
+ amount = msg.readInt16("value");
if (type == Sp::HP)
{
const int base = PlayerInfo::getAttribute(Attributes::PLAYER_HP) +