Don't allow buildings to work before they are built, closes #582
parent
270c77da5b
commit
d8372510b8
|
@ -2101,8 +2101,11 @@ bool COldObject::EventProcess(const Event &event)
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( m_auto != nullptr )
|
if ( m_auto != nullptr )
|
||||||
|
{
|
||||||
|
if (!GetLock())
|
||||||
{
|
{
|
||||||
m_auto->EventProcess(event);
|
m_auto->EventProcess(event);
|
||||||
|
}
|
||||||
|
|
||||||
if ( event.type == EVENT_FRAME &&
|
if ( event.type == EVENT_FRAME &&
|
||||||
m_auto->IsEnded() != ERR_CONTINUE )
|
m_auto->IsEnded() != ERR_CONTINUE )
|
||||||
|
|
Loading…
Reference in New Issue