summaryrefslogtreecommitdiff
path: root/src/net/tmwa/playerhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-11 19:28:57 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-11 19:28:57 +0300
commit87c59212f8590a8dd72fac3e320fcb2ada781355 (patch)
tree198d627c44f1164140659827a5c782d30bec375b /src/net/tmwa/playerhandler.cpp
parent02e91411eb9961e95f856bd717d6ca0d8ec0e435 (diff)
downloadManaVerse-87c59212f8590a8dd72fac3e320fcb2ada781355.tar.gz
ManaVerse-87c59212f8590a8dd72fac3e320fcb2ada781355.tar.bz2
ManaVerse-87c59212f8590a8dd72fac3e320fcb2ada781355.tar.xz
ManaVerse-87c59212f8590a8dd72fac3e320fcb2ada781355.zip
Move player attributes into separate file.
Diffstat (limited to 'src/net/tmwa/playerhandler.cpp')
-rw-r--r--src/net/tmwa/playerhandler.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/net/tmwa/playerhandler.cpp b/src/net/tmwa/playerhandler.cpp
index 25a2e0cde..591c9c44e 100644
--- a/src/net/tmwa/playerhandler.cpp
+++ b/src/net/tmwa/playerhandler.cpp
@@ -26,6 +26,8 @@
#include "game.h"
#include "soundmanager.h"
+#include "being/attributes.h"
+
#include "net/net.h"
#include "net/tmwa/inventoryhandler.h"
@@ -161,7 +163,7 @@ void PlayerHandler::increaseAttribute(const int attr) const
void PlayerHandler::increaseSkill(const uint16_t skillId) const
{
- if (PlayerInfo::getAttribute(PlayerInfo::SKILL_POINTS) <= 0)
+ if (PlayerInfo::getAttribute(Attributes::SKILL_POINTS) <= 0)
return;
MessageOut outMsg(CMSG_SKILL_LEVELUP_REQUEST);