summaryrefslogtreecommitdiff
path: root/src/gui/windows/statuswindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-01 18:38:46 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-01 19:28:09 +0300
commit624ddd306ebbd1cfdfd5bf85832ee969e15a619c (patch)
treed36e74e62836de01727fc0a440f3a70cabc91acd /src/gui/windows/statuswindow.cpp
parent1d6c226f2aae2410f9785709aefd88f1a17e6bca (diff)
downloadplus-624ddd306ebbd1cfdfd5bf85832ee969e15a619c.tar.gz
plus-624ddd306ebbd1cfdfd5bf85832ee969e15a619c.tar.bz2
plus-624ddd306ebbd1cfdfd5bf85832ee969e15a619c.tar.xz
plus-624ddd306ebbd1cfdfd5bf85832ee969e15a619c.zip
Move JOB stat from net enum into attributes.
Diffstat (limited to 'src/gui/windows/statuswindow.cpp')
-rw-r--r--src/gui/windows/statuswindow.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/windows/statuswindow.cpp b/src/gui/windows/statuswindow.cpp
index b2825c1e7..227528b20 100644
--- a/src/gui/windows/statuswindow.cpp
+++ b/src/gui/windows/statuswindow.cpp
@@ -128,8 +128,8 @@ StatusWindow::StatusWindow() :
getThemeColor(Theme::XP_BAR_OUTLINE));
const bool magicBar = gameHandler->canUseMagicBar();
- const int job = playerHandler->getJobLocation()
- && serverConfig.getValueBool("showJob", true);
+ const int job = Attributes::JOB
+ && serverConfig.getValueBool("showJob", true);
if (magicBar)
{
@@ -264,7 +264,7 @@ void StatusWindow::statChanged(const int id,
if (blocked)
return;
- if (id == playerHandler->getJobLocation())
+ if (id == Attributes::JOB)
{
if (mJobLvlLabel)
{
@@ -522,7 +522,7 @@ void StatusWindow::updateJobBar(ProgressBar *const bar, const bool percent)
return;
const std::pair<int, int> exp = PlayerInfo::getStatExperience(
- playerHandler->getJobLocation());
+ Attributes::JOB);
updateProgressBar(bar, exp.first, exp.second, percent);
}