summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-02-07 13:11:20 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-07 13:11:20 +0300
commit5fb0dc3d424a869597a34cbe200ad6aa38c16d5a (patch)
tree707c7689590c02bc3ab6827e35267ceaa633f66b /src
parent1e425f90290ec25221a88abf464ad4d3e01d518f (diff)
downloadplus-5fb0dc3d424a869597a34cbe200ad6aa38c16d5a.tar.gz
plus-5fb0dc3d424a869597a34cbe200ad6aa38c16d5a.tar.bz2
plus-5fb0dc3d424a869597a34cbe200ad6aa38c16d5a.tar.xz
plus-5fb0dc3d424a869597a34cbe200ad6aa38c16d5a.zip
Fix saving attack mobs relations and pickup items relations.
Diffstat (limited to 'src')
-rw-r--r--src/actormanager.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/actormanager.cpp b/src/actormanager.cpp
index c847434a9..ec9ec41ba 100644
--- a/src/actormanager.cpp
+++ b/src/actormanager.cpp
@@ -1534,6 +1534,7 @@ void ActorManager::removeAttackMob(const std::string &name)
mIgnoreAttackMobsSet.erase(name);
rebuildAttackMobs();
rebuildPriorityAttackMobs();
+ storeAttackList();
}
void ActorManager::removePickupItem(const std::string &name)
@@ -1543,6 +1544,7 @@ void ActorManager::removePickupItem(const std::string &name)
mIgnorePickupItems.remove(name);
mIgnorePickupItemsSet.erase(name);
rebuildPickupItems();
+ storeAttackList();
}
#define addMobToList(name, mob) \
@@ -1587,11 +1589,13 @@ void ActorManager::addAttackMob(const std::string &name)
{
addMobToList(name, AttackMob);
rebuildPriorityAttackMobs();
+ storeAttackList();
}
void ActorManager::addPriorityAttackMob(const std::string &name)
{
addMobToList(name, PriorityAttackMob);
+ storeAttackList();
}
void ActorManager::addIgnoreAttackMob(const std::string &name)
@@ -1600,12 +1604,14 @@ void ActorManager::addIgnoreAttackMob(const std::string &name)
mIgnoreAttackMobsSet.insert(name);
rebuildAttackMobs();
rebuildPriorityAttackMobs();
+ storeAttackList();
}
void ActorManager::addPickupItem(const std::string &name)
{
addMobToList(name, PickupItem);
rebuildPickupItems();
+ storeAttackList();
}
void ActorManager::addIgnorePickupItem(const std::string &name)
@@ -1613,6 +1619,7 @@ void ActorManager::addIgnorePickupItem(const std::string &name)
mIgnorePickupItems.push_back(name);
mIgnorePickupItemsSet.insert(name);
rebuildPickupItems();
+ storeAttackList();
}
void ActorManager::rebuildPriorityAttackMobs()