From 5719a23f9b0729f04ed1fa5dc6cc680c58d514d4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 31 Jan 2017 18:57:07 +0300 Subject: Move units into db directory. --- src/net/tmwa/playerhandler.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/net/tmwa/playerhandler.cpp') diff --git a/src/net/tmwa/playerhandler.cpp b/src/net/tmwa/playerhandler.cpp index 43ebaa483..d9ec46fe3 100644 --- a/src/net/tmwa/playerhandler.cpp +++ b/src/net/tmwa/playerhandler.cpp @@ -22,7 +22,6 @@ #include "net/tmwa/playerhandler.h" -#include "units.h" #include "notifymanager.h" #include "party.h" @@ -41,6 +40,8 @@ #include "net/tmwa/protocolout.h" #include "net/tmwa/sp.h" +#include "resources/db/unitsdb.h" + #include "debug.h" extern Net::PlayerHandler *playerHandler; @@ -317,12 +318,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); -- cgit v1.2.3-60-g2f50