mirror of https://github.com/OpenTTD/OpenTTD.git
Merge e266604e27
into ac6a945e26
This commit is contained in:
commit
5bfddff19f
|
@ -579,9 +579,9 @@ bool CanDeleteHouse(TileIndex tile)
|
||||||
{
|
{
|
||||||
const HouseSpec *hs = HouseSpec::Get(GetHouseType(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. */
|
* 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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue