summaryrefslogtreecommitdiff
path: root/src/net/eathena/playerhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-01-31 18:57:07 +0300
committerAndrei Karas <akaras@inbox.ru>2017-01-31 18:57:07 +0300
commit5719a23f9b0729f04ed1fa5dc6cc680c58d514d4 (patch)
treed4fc1a73ea263a737e56d740a266bea34a1bbfcd /src/net/eathena/playerhandler.cpp
parent31e7a7d05f36495df0176fc31d5894e216c3cdf4 (diff)
downloadmv-5719a23f9b0729f04ed1fa5dc6cc680c58d514d4.tar.gz
mv-5719a23f9b0729f04ed1fa5dc6cc680c58d514d4.tar.bz2
mv-5719a23f9b0729f04ed1fa5dc6cc680c58d514d4.tar.xz
mv-5719a23f9b0729f04ed1fa5dc6cc680c58d514d4.zip
Move units into db directory.
Diffstat (limited to 'src/net/eathena/playerhandler.cpp')
-rw-r--r--src/net/eathena/playerhandler.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/net/eathena/playerhandler.cpp b/src/net/eathena/playerhandler.cpp
index 35baf812d..81f072da4 100644
--- a/src/net/eathena/playerhandler.cpp
+++ b/src/net/eathena/playerhandler.cpp
@@ -22,7 +22,6 @@
#include "net/eathena/playerhandler.h"
-#include "units.h"
#include "notifymanager.h"
#include "party.h"
@@ -41,6 +40,8 @@
#include "net/eathena/inventoryhandler.h"
#include "net/eathena/sp.h"
+#include "resources/db/unitsdb.h"
+
#include "debug.h"
extern Net::PlayerHandler *playerHandler;
@@ -617,12 +618,12 @@ void PlayerHandler::setStat(Net::MessageIn &msg,
if (newMoney > oldMoney)
{
NotifyManager::notify(NotifyTypes::MONEY_GET,
- Units::formatCurrency(newMoney - oldMoney));
+ UnitsDb::formatCurrency(newMoney - oldMoney));
}
else if (newMoney < oldMoney)
{
NotifyManager::notify(NotifyTypes::MONEY_SPENT,
- Units::formatCurrency(oldMoney - newMoney).c_str());
+ UnitsDb::formatCurrency(oldMoney - newMoney).c_str());
}
PlayerInfo::setAttribute(Attributes::MONEY, newMoney);