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

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

View File

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