mirror of https://github.com/OpenTTD/OpenTTD.git
Change: Don't treat Humans and AIs differently when it comes to deleting houses.
`CanDeleteHouse()` allows human players to delete any house, but prevents AI players doing the same. This is an old left-over from before NoAI existed.
This commit is contained in:
parent
42a88fc1d6
commit
e266604e27
|
@ -513,9 +513,9 @@ bool CanDeleteHouse(TileIndex tile)
|
|||
{
|
||||
const HouseSpec *hs = HouseSpec::Get(GetHouseType(tile));
|
||||
|
||||
/* Humans are always allowed to remove buildings, as is water and disasters and
|
||||
/* Companies are always allowed to remove buildings, as is water and disasters and
|
||||
* anyone using the scenario editor. */
|
||||
if (Company::IsValidHumanID(_current_company) || _current_company == OWNER_WATER || _current_company == OWNER_NONE || _game_mode == GM_EDITOR || _generating_world) {
|
||||
if (Company::IsValidID(_current_company) || _current_company == OWNER_WATER || _current_company == OWNER_NONE || _game_mode == GM_EDITOR || _generating_world) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue