Don't allow buildings to work before they are built, closes

master
krzys-h 2015-08-25 10:57:36 +02:00
parent 270c77da5b
commit d8372510b8
1 changed files with 4 additions and 1 deletions
src/object

View File

@ -2101,8 +2101,11 @@ bool COldObject::EventProcess(const Event &event)
}
if ( m_auto != nullptr )
{
if (!GetLock())
{
m_auto->EventProcess(event);
}
if ( event.type == EVENT_FRAME &&
m_auto->IsEnded() != ERR_CONTINUE )