mirror of https://github.com/OpenTTD/OpenTTD
(svn r18976) -Fix: Estimating the cost of removing statues could clear the presence flag in the town.
parent
5f4f562d53
commit
c23e4e4538
|
@ -287,9 +287,11 @@ static CommandCost ClearTile_Unmovable(TileIndex tile, DoCommandFlag flags)
|
|||
if (IsStatue(tile)) {
|
||||
if (flags & DC_AUTO) return_cmd_error(STR_ERROR_OBJECT_IN_THE_WAY);
|
||||
|
||||
TownID town = GetStatueTownID(tile);
|
||||
ClrBit(Town::Get(town)->statues, GetTileOwner(tile));
|
||||
SetWindowDirty(WC_TOWN_AUTHORITY, town);
|
||||
if (flags & DC_EXEC) {
|
||||
TownID town = GetStatueTownID(tile);
|
||||
ClrBit(Town::Get(town)->statues, GetTileOwner(tile));
|
||||
SetWindowDirty(WC_TOWN_AUTHORITY, town);
|
||||
}
|
||||
}
|
||||
|
||||
if (flags & DC_EXEC) {
|
||||
|
|
Loading…
Reference in New Issue