summaryrefslogtreecommitdiff
path: root/src/being
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-12-25 21:36:32 +0300
committerAndrei Karas <akaras@inbox.ru>2013-12-25 21:36:32 +0300
commit0d06cc2ed6bbf6b6f53619e56cbd2fbda2a480a0 (patch)
treeb7c361d537a95b6c4321b8f6037e41ff86af6630 /src/being
parent8357e89fc0923f4b97cf8b990a4ffba2716bfabf (diff)
downloadplus-0d06cc2ed6bbf6b6f53619e56cbd2fbda2a480a0.tar.gz
plus-0d06cc2ed6bbf6b6f53619e56cbd2fbda2a480a0.tar.bz2
plus-0d06cc2ed6bbf6b6f53619e56cbd2fbda2a480a0.tar.xz
plus-0d06cc2ed6bbf6b6f53619e56cbd2fbda2a480a0.zip
add option for enable/disable pets support.
Diffstat (limited to 'src/being')
-rw-r--r--src/being/being.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index 7a3a198c1..bdd18b439 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -3185,7 +3185,7 @@ void Being::addEffect(const std::string &name)
void Being::addPet(const int id)
{
- if (!actorManager)
+ if (!actorManager || !config.getBoolValue("usepets"))
return;
removePet();