summaryrefslogtreecommitdiff
path: root/src/gui/windows/statuswindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-12-17 01:47:44 +0300
committerAndrei Karas <akaras@inbox.ru>2017-12-17 01:47:44 +0300
commitddf3a130e1db0417d2dad77f69d6aa95028024d6 (patch)
treecf40b5a2d124612572507855b154fde4305646c9 /src/gui/windows/statuswindow.cpp
parent3a360e0ae954df7cc467ea76ed9022fd520497d7 (diff)
downloadmanaplus-ddf3a130e1db0417d2dad77f69d6aa95028024d6.tar.gz
manaplus-ddf3a130e1db0417d2dad77f69d6aa95028024d6.tar.bz2
manaplus-ddf3a130e1db0417d2dad77f69d6aa95028024d6.tar.xz
manaplus-ddf3a130e1db0417d2dad77f69d6aa95028024d6.zip
Remove default parameter from PlayerInfo::setAttribute.
Diffstat (limited to 'src/gui/windows/statuswindow.cpp')
-rw-r--r--src/gui/windows/statuswindow.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gui/windows/statuswindow.cpp b/src/gui/windows/statuswindow.cpp
index 092e401c2..c144fdc57 100644
--- a/src/gui/windows/statuswindow.cpp
+++ b/src/gui/windows/statuswindow.cpp
@@ -350,7 +350,8 @@ void StatusWindow::attributeChanged(const AttributesT id,
lvl = CAST_S32((expNeed - 20000) / 150);
blocked = true;
PlayerInfo::setAttribute(Attributes::PLAYER_JOB_LEVEL,
- lvl);
+ lvl,
+ Notify_true);
blocked = false;
}
}
@@ -363,9 +364,11 @@ void StatusWindow::attributeChanged(const AttributesT id,
lvl ++;
blocked = true;
PlayerInfo::setAttribute(Attributes::PLAYER_JOB_EXP_NEEDED,
- 20000 + lvl * 150);
+ 20000 + lvl * 150,
+ Notify_true);
PlayerInfo::setAttribute(Attributes::PLAYER_JOB_LEVEL,
- lvl);
+ lvl,
+ Notify_true);
blocked = false;
}