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
112112
113113 return (true );
114114}
115+
115116void CAttachableItem::afterAttach ()
116117{
117118 VERIFY (m_valid);
@@ -124,6 +125,11 @@ void CAttachableItem::afterDetach()
124125 object ().processing_deactivate ();
125126}
126127
128+ virtual bool CAttachableItem::use_parent_ai_locations () const
129+ {
130+ return !enabled ();
131+ }
132+
127133#ifdef DEBUG
128134float ATT_ITEM_MOVE_CURR = 0 .01f ;
129135float ATT_ITEM_ROT_CURR = 0 .1f ;
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ class CAttachableItem
5454 virtual void enable (bool value);
5555
5656protected:
57- virtual bool use_parent_ai_locations () const = 0 { return ! enabled (); }
57+ virtual bool use_parent_ai_locations () const = 0;
5858public:
5959#ifdef DEBUG
6060 static CAttachableItem* m_dbgItem;
You can’t perform that action at this time.
0 commit comments