Ignore:
Timestamp:
12/02/10 21:22:45 (4 years ago)
Author:
helios2000
Message:
  • Added an additional flag to the Instance. This protects against unintentional change of Instance blocking. ObjectEdit?, Saver and Loader use the flag.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/active/0.3.3dev/engine/core/model/structures/instance.cpp

    r3517 r3520  
    184184                m_facinglocation(NULL), 
    185185                m_visual(NULL), 
    186                 m_blocking(object->isBlocking()) { 
     186                m_blocking(object->isBlocking()), 
     187                m_override_blocking(false) { 
    187188        } 
    188189 
     
    247248 
    248249        void Instance::setBlocking(bool blocking) { 
    249                 m_blocking = blocking; 
     250                if (m_override_blocking) { 
     251                        m_blocking = blocking; 
     252                } 
    250253        } 
    251254 
Note: See TracChangeset for help on using the changeset viewer.