mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 22:28:56 +00:00
(svn r18976) -Fix: Estimating the cost of removing statues could clear the presence flag in the town.
This commit is contained in:
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
Block a user