File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -112,6 +112,7 @@ bool CAttachableItem::can_be_attached() const
112
112
113
113
return (true );
114
114
}
115
+
115
116
void CAttachableItem::afterAttach ()
116
117
{
117
118
VERIFY (m_valid);
@@ -124,6 +125,11 @@ void CAttachableItem::afterDetach()
124
125
object ().processing_deactivate ();
125
126
}
126
127
128
+ virtual bool CAttachableItem::use_parent_ai_locations () const
129
+ {
130
+ return !enabled ();
131
+ }
132
+
127
133
#ifdef DEBUG
128
134
float ATT_ITEM_MOVE_CURR = 0 .01f ;
129
135
float ATT_ITEM_ROT_CURR = 0 .1f ;
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ class CAttachableItem
54
54
virtual void enable (bool value);
55
55
56
56
protected:
57
- virtual bool use_parent_ai_locations () const = 0 { return ! enabled (); }
57
+ virtual bool use_parent_ai_locations () const = 0;
58
58
public:
59
59
#ifdef DEBUG
60
60
static CAttachableItem* m_dbgItem;
You can’t perform that action at this time.
0 commit comments