mirror of https://github.com/OpenTTD/OpenTTD
(svn r23930) -Fix [FS#4944]: [Script] Do not close the parameter window when a script starts
parent
27e54a4e36
commit
1cf2f521ab
|
@ -517,11 +517,7 @@ struct AISettingsWindow : public Window {
|
||||||
*/
|
*/
|
||||||
virtual void OnInvalidateData(int data = 0, bool gui_scope = true)
|
virtual void OnInvalidateData(int data = 0, bool gui_scope = true)
|
||||||
{
|
{
|
||||||
if (_game_mode == GM_NORMAL && Company::IsValidID(this->slot)) {
|
this->RebuildVisibleSettings();
|
||||||
delete this;
|
|
||||||
} else {
|
|
||||||
this->RebuildVisibleSettings();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue