diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-07-29 21:11:40 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-07-29 21:11:40 +0300 |
commit | 0fe12f569879f90b8b6efab790ba896b9769a3d4 (patch) | |
tree | b81fe57e9defa337c79ab89d37c35bb3bbd8de06 /src/actormanager.cpp | |
parent | aa0bda1d887709c13c64308d33087ad7fc1ac0bf (diff) | |
download | manaverse-0fe12f569879f90b8b6efab790ba896b9769a3d4.tar.gz manaverse-0fe12f569879f90b8b6efab790ba896b9769a3d4.tar.bz2 manaverse-0fe12f569879f90b8b6efab790ba896b9769a3d4.tar.xz manaverse-0fe12f569879f90b8b6efab790ba896b9769a3d4.zip |
Fix enable/disable badges without client restart.
Diffstat (limited to 'src/actormanager.cpp')
-rw-r--r-- | src/actormanager.cpp | 4 |
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; |