summaryrefslogtreecommitdiff
path: root/src/net/ea/playerhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-06-06 22:41:39 +0300
committerAndrei Karas <akaras@inbox.ru>2014-06-07 02:07:03 +0300
commita51da75e329df773a01e963c3a27e72cf487138c (patch)
treec48d7c682be1104138dd16daa75fd12a3fcae82b /src/net/ea/playerhandler.cpp
parent4f7e38d218848bd34bd86dda75446881dad2bb32 (diff)
downloadmanaverse-a51da75e329df773a01e963c3a27e72cf487138c.tar.gz
manaverse-a51da75e329df773a01e963c3a27e72cf487138c.tar.bz2
manaverse-a51da75e329df773a01e963c3a27e72cf487138c.tar.xz
manaverse-a51da75e329df773a01e963c3a27e72cf487138c.zip
fix code style.
Diffstat (limited to 'src/net/ea/playerhandler.cpp')
-rw-r--r--src/net/ea/playerhandler.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/net/ea/playerhandler.cpp b/src/net/ea/playerhandler.cpp
index 0ed9f9a18..9e2a0dfb3 100644
--- a/src/net/ea/playerhandler.cpp
+++ b/src/net/ea/playerhandler.cpp
@@ -25,7 +25,6 @@
#include "configuration.h"
#include "game.h"
#include "party.h"
-#include "notifications.h"
#include "notifymanager.h"
#include "units.h"
@@ -38,6 +37,8 @@
#include "gui/windows/skilldialog.h"
#include "gui/windows/statuswindow.h"
+#include "resources/notifytypes.h"
+
#include "resources/db/deaddb.h"
#include "resources/map/map.h"
@@ -50,6 +51,8 @@
#include "net/ea/eaprotocol.h"
+#include "utils/gettext.h"
+
#include "debug.h"
extern int weightNoticeTime;
@@ -395,12 +398,12 @@ void PlayerHandler::processPlayerStatUpdate2(Net::MessageIn &msg)
const int newMoney = msg.readInt32();
if (newMoney > oldMoney)
{
- NotifyManager::notify(NotifyManager::MONEY_GET,
+ NotifyManager::notify(NotifyTypes::MONEY_GET,
Units::formatCurrency(newMoney - oldMoney));
}
else if (newMoney < oldMoney)
{
- NotifyManager::notify(NotifyManager::MONEY_SPENT,
+ NotifyManager::notify(NotifyTypes::MONEY_SPENT,
Units::formatCurrency(oldMoney - newMoney).c_str());
}
@@ -448,7 +451,7 @@ void PlayerHandler::processPlayerStatUpdate4(Net::MessageIn &msg)
const int points = PlayerInfo::getAttribute(Attributes::CHAR_POINTS)
+ oldValue - value;
PlayerInfo::setAttribute(Attributes::CHAR_POINTS, points);
- NotifyManager::notify(NotifyManager::SKILL_RAISE_ERROR);
+ NotifyManager::notify(NotifyTypes::SKILL_RAISE_ERROR);
}
PlayerInfo::setStatBase(type, value);
@@ -571,7 +574,7 @@ void PlayerHandler::processPlayerArrowMessage(Net::MessageIn &msg)
switch (type)
{
case 0:
- NotifyManager::notify(NotifyManager::ARROWS_EQUIP_NEEDED);
+ NotifyManager::notify(NotifyTypes::ARROWS_EQUIP_NEEDED);
break;
case 3:
// arrows equiped