From 6ccaaa586b3f4d739ccfa1dc90cdf96b8810d31a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 8 Mar 2016 21:11:59 +0300 Subject: Move stat constants from ea namespace into tmwa and eathena. Also rename constants namespace from Ea to Sp. --- src/net/eathena/playerrecv.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/net/eathena/playerrecv.cpp') 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); } -- cgit v1.2.3-60-g2f50