mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-15 02:29:10 +00:00
(svn r18976) -Fix: Estimating the cost of removing statues could clear the presence flag in the town.
This commit is contained in:
@@ -287,9 +287,11 @@ static CommandCost ClearTile_Unmovable(TileIndex tile, DoCommandFlag flags)
|
|||||||
if (IsStatue(tile)) {
|
if (IsStatue(tile)) {
|
||||||
if (flags & DC_AUTO) return_cmd_error(STR_ERROR_OBJECT_IN_THE_WAY);
|
if (flags & DC_AUTO) return_cmd_error(STR_ERROR_OBJECT_IN_THE_WAY);
|
||||||
|
|
||||||
TownID town = GetStatueTownID(tile);
|
if (flags & DC_EXEC) {
|
||||||
ClrBit(Town::Get(town)->statues, GetTileOwner(tile));
|
TownID town = GetStatueTownID(tile);
|
||||||
SetWindowDirty(WC_TOWN_AUTHORITY, town);
|
ClrBit(Town::Get(town)->statues, GetTileOwner(tile));
|
||||||
|
SetWindowDirty(WC_TOWN_AUTHORITY, town);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (flags & DC_EXEC) {
|
if (flags & DC_EXEC) {
|
||||||
|
Reference in New Issue
Block a user