summaryrefslogtreecommitdiff
path: root/src/unmovable_cmd.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2009-09-13 19:15:59 +0000
committerfrosch <frosch@openttd.org>2009-09-13 19:15:59 +0000
commitebd916be3def20902cf19ffd16555074728eb9c3 (patch)
treec7748d7612a61b9558ffd10ffb176e34584f2376 /src/unmovable_cmd.cpp
parent5de9cc46b50b8e677395543c10b26b59c860212b (diff)
downloadopenttd-ebd916be3def20902cf19ffd16555074728eb9c3.tar.xz
(svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability.
Diffstat (limited to 'src/unmovable_cmd.cpp')
-rw-r--r--src/unmovable_cmd.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/unmovable_cmd.cpp b/src/unmovable_cmd.cpp
index a083eb4c2..4fa528b40 100644
--- a/src/unmovable_cmd.cpp
+++ b/src/unmovable_cmd.cpp
@@ -69,7 +69,7 @@ static CommandCost DestroyCompanyHQ(CompanyID cid, DoCommandFlag flags)
DoClearSquare(t + TileDiffXY(1, 0));
DoClearSquare(t + TileDiffXY(1, 1));
c->location_of_HQ = INVALID_TILE; // reset HQ position
- InvalidateWindow(WC_COMPANY, cid);
+ SetWindowDirty(WC_COMPANY, cid);
CargoPacket::InvalidateAllFrom(ST_HEADQUARTERS, cid);
}
@@ -127,7 +127,7 @@ CommandCost CmdBuildCompanyHQ(TileIndex tile, DoCommandFlag flags, uint32 p1, ui
MakeCompanyHQ(tile, _current_company);
UpdateCompanyHQ(c, score);
- InvalidateWindow(WC_COMPANY, c->index);
+ SetWindowDirty(WC_COMPANY, c->index);
}
return cost;
@@ -291,7 +291,7 @@ static CommandCost ClearTile_Unmovable(TileIndex tile, DoCommandFlag flags)
TownID town = GetStatueTownID(tile);
ClrBit(Town::Get(town)->statues, GetTileOwner(tile));
- InvalidateWindow(WC_TOWN_AUTHORITY, town);
+ SetWindowDirty(WC_TOWN_AUTHORITY, town);
}
if (flags & DC_EXEC) {
@@ -486,7 +486,7 @@ static void ChangeTileOwner_Unmovable(TileIndex tile, Owner old_owner, Owner new
DoClearSquare(tile);
}
- InvalidateWindow(WC_TOWN_AUTHORITY, town);
+ SetWindowDirty(WC_TOWN_AUTHORITY, town);
} else {
DoClearSquare(tile);
}