diff options
author | rubidium <rubidium@openttd.org> | 2007-09-09 10:13:17 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-09-09 10:13:17 +0000 |
commit | 65f9a0f21a1379107683f7b5f2fc0c82f22a4cb6 (patch) | |
tree | 43502b2af33d4a35c7e2e2fbd6f29b3cc60b4ba8 /src/water_cmd.cpp | |
parent | ef4d248325114b5cc3fb864f7105b44a7784be50 (diff) | |
download | openttd-65f9a0f21a1379107683f7b5f2fc0c82f22a4cb6.tar.xz |
(svn r11065) -Documentation [FS#1186]: of the dirty marking/repainting subsystem. Patch by Progman.
Diffstat (limited to 'src/water_cmd.cpp')
-rw-r--r-- | src/water_cmd.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/water_cmd.cpp b/src/water_cmd.cpp index c0f620cbf..2e381e3eb 100644 --- a/src/water_cmd.cpp +++ b/src/water_cmd.cpp @@ -183,6 +183,15 @@ static CommandCost RemoveShiplift(TileIndex tile, uint32 flags) return CommandCost(_price.clear_water * 2); } +/** + * Marks the tiles around a tile as dirty. + * + * This functions marks the tiles around a given tile as dirty for repaint. + * + * @param tile The center of the tile where all other tiles are marked as dirty + * @ingroup dirty + * @see TerraformAddDirtyTileAround + */ static void MarkTilesAroundDirty(TileIndex tile) { MarkTileDirtyByTile(TILE_ADDXY(tile, 0, 1)); |