summaryrefslogtreecommitdiff
path: root/src/actormanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-07-29 21:11:40 +0300
committerAndrei Karas <akaras@inbox.ru>2015-07-29 21:11:40 +0300
commit0fe12f569879f90b8b6efab790ba896b9769a3d4 (patch)
treeb81fe57e9defa337c79ab89d37c35bb3bbd8de06 /src/actormanager.cpp
parentaa0bda1d887709c13c64308d33087ad7fc1ac0bf (diff)
downloadmv-0fe12f569879f90b8b6efab790ba896b9769a3d4.tar.gz
mv-0fe12f569879f90b8b6efab790ba896b9769a3d4.tar.bz2
mv-0fe12f569879f90b8b6efab790ba896b9769a3d4.tar.xz
mv-0fe12f569879f90b8b6efab790ba896b9769a3d4.zip
Fix enable/disable badges without client restart.
Diffstat (limited to 'src/actormanager.cpp')
-rw-r--r--src/actormanager.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/actormanager.cpp b/src/actormanager.cpp
index 0699ecf57..510202435 100644
--- a/src/actormanager.cpp
+++ b/src/actormanager.cpp
@@ -218,6 +218,7 @@ ActorManager::ActorManager() :
config.addListener("cycleMonsters", this);
config.addListener("cycleNPC", this);
config.addListener("extMouseTargeting", this);
+ config.addListener("showBadges", this);
loadAttackList();
}
@@ -1848,7 +1849,8 @@ Being *ActorManager::cloneBeing(const Being *const srcBeing,
void ActorManager::updateBadges()
{
- const bool showBadges = config.getBoolValue("showBadges");
+ const int showBadges = config.getIntValue("showBadges");
+ Being::mShowBadges = showBadges;
for_actors
{
ActorSprite *const actor = *it;