mirror of https://github.com/OpenTTD/OpenTTD
(svn r23680) -Fix [FS#4915]: prevent removal of the (AI) company the local player is in
parent
156e25d375
commit
98fdf81320
|
@ -1245,7 +1245,7 @@ DEF_CONSOLE_CMD(ConStopAI)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Company::IsHumanID(company_id)) {
|
if (Company::IsHumanID(company_id) || company_id == _local_company) {
|
||||||
IConsoleWarning("Company is not controlled by an AI.");
|
IConsoleWarning("Company is not controlled by an AI.");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue