From 4ba35c456af28479b547f2ab2c0bd02c40c292f6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 13 Oct 2015 23:39:29 +0300 Subject: Add npc attribute what allow or prevent removing npc after out of sight. New npc attribute: allowDelete --- src/resources/beinginfo.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/resources/beinginfo.cpp') 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); -- cgit v1.2.3-60-g2f50