summaryrefslogtreecommitdiff
path: root/src/net/eathena/playerrecv.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-03-08 21:11:59 +0300
committerAndrei Karas <akaras@inbox.ru>2016-03-08 21:11:59 +0300
commit6ccaaa586b3f4d739ccfa1dc90cdf96b8810d31a (patch)
treed92b0443076e5dc9adb031a563d44b5c541894a6 /src/net/eathena/playerrecv.cpp
parentd8d84315013a24730c5b9d08122a954d713521c7 (diff)
downloadmanaplus-6ccaaa586b3f4d739ccfa1dc90cdf96b8810d31a.tar.gz
manaplus-6ccaaa586b3f4d739ccfa1dc90cdf96b8810d31a.tar.bz2
manaplus-6ccaaa586b3f4d739ccfa1dc90cdf96b8810d31a.tar.xz
manaplus-6ccaaa586b3f4d739ccfa1dc90cdf96b8810d31a.zip
Move stat constants from ea namespace into tmwa and eathena.
Also rename constants namespace from Ea to Sp.
Diffstat (limited to 'src/net/eathena/playerrecv.cpp')
-rw-r--r--src/net/eathena/playerrecv.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/eathena/playerrecv.cpp b/src/net/eathena/playerrecv.cpp
index e9dbeb74d..2f3f6294c 100644
--- a/src/net/eathena/playerrecv.cpp
+++ b/src/net/eathena/playerrecv.cpp
@@ -41,7 +41,7 @@
#include "net/messagein.h"
-#include "net/ea/eaprotocol.h"
+#include "net/eathena/sp.h"
#include "debug.h"
@@ -234,7 +234,7 @@ void PlayerRecv::processPlayerHeal(Net::MessageIn &msg)
const int type = msg.readInt16("var id");
const int amount = msg.readInt16("value");
- if (type == Ea::HP)
+ if (type == Sp::HP)
{
const int base = PlayerInfo::getAttribute(Attributes::HP) + amount;
PlayerInfo::setAttribute(Attributes::HP, base);
@@ -250,7 +250,7 @@ void PlayerRecv::processPlayerHeal(Net::MessageIn &msg)
}
localPlayer->addHpMessage(amount);
}
- else if (type == Ea::MP)
+ else if (type == Sp::MP)
{
localPlayer->addSpMessage(amount);
}