summaryrefslogtreecommitdiff
path: root/src/resources/beinginfo.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-10-13 23:39:29 +0300
committerAndrei Karas <akaras@inbox.ru>2015-10-13 23:39:29 +0300
commit4ba35c456af28479b547f2ab2c0bd02c40c292f6 (patch)
tree007ba5942a6e9a62ee64f9b85e21cc5780eceae4 /src/resources/beinginfo.cpp
parent2c302cc6cb54881fbe354cc9d5a9997788f63e56 (diff)
downloadmv-4ba35c456af28479b547f2ab2c0bd02c40c292f6.tar.gz
mv-4ba35c456af28479b547f2ab2c0bd02c40c292f6.tar.bz2
mv-4ba35c456af28479b547f2ab2c0bd02c40c292f6.tar.xz
mv-4ba35c456af28479b547f2ab2c0bd02c40c292f6.zip
Add npc attribute what allow or prevent removing npc after out of sight.
New npc attribute: allowDelete
Diffstat (limited to 'src/resources/beinginfo.cpp')
-rw-r--r--src/resources/beinginfo.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/resources/beinginfo.cpp b/src/resources/beinginfo.cpp
index 1f1033e3c..5a36892d9 100644
--- a/src/resources/beinginfo.cpp
+++ b/src/resources/beinginfo.cpp
@@ -90,7 +90,8 @@ BeingInfo::BeingInfo() :
mDeadDirectionType(1),
mAttackDirectionType(1),
mStaticMaxHP(false),
- mTargetSelection(true)
+ mTargetSelection(true),
+ mAllowDelete(true)
{
SpriteDisplay display;
display.sprites.push_back(SpriteReference::Empty);