forked from mirror/OpenTTD
(svn r24811) -Add: Close engine preview window when another client accepts it.
This commit is contained in:
@@ -110,6 +110,14 @@ struct EnginePreviewWindow : Window {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
virtual void OnInvalidateData(int data = 0, bool gui_scope = true)
|
||||
{
|
||||
if (!gui_scope) return;
|
||||
|
||||
EngineID engine = this->window_number;
|
||||
if (Engine::Get(engine)->preview_company != _local_company) delete this;
|
||||
}
|
||||
};
|
||||
|
||||
static const WindowDesc _engine_preview_desc(
|
||||
|
Reference in New Issue
Block a user