summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-03-01 06:39:04 +0000
committertron <tron@openttd.org>2006-03-01 06:39:04 +0000
commit7a3a9e626290220ee3cc37898a989e3b6811d8fa (patch)
tree50e8c78c1fc8e1a7d3b7735336cedf5c92d40fc5
parenta8febcf20978feea027f5463d90fe247055cc8c5 (diff)
downloadopenttd-7a3a9e626290220ee3cc37898a989e3b6811d8fa.tar.xz
(svn r3695) Add 2 MarkTileByTile() which I forgot in r3689 (noticed by Belugas)
-rw-r--r--road_cmd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/road_cmd.c b/road_cmd.c
index 25e164e48..589b274ef 100644
--- a/road_cmd.c
+++ b/road_cmd.c
@@ -408,6 +408,7 @@ int32 CmdBuildRoad(int x, int y, uint32 flags, uint32 p1, uint32 p2)
if (flags & DC_EXEC) {
MakeRoadCrossing(tile, _current_player, GetTileOwner(tile), roaddir, GB(_m[tile].m3, 0, 4), p2);
+ MarkTileDirtyByTile(tile);
}
return _price.build_road * 2;
}
@@ -659,6 +660,7 @@ int32 CmdBuildRoadDepot(int x, int y, uint32 flags, uint32 p1, uint32 p2)
dep->town_index = ClosestTownFromTile(tile, (uint)-1)->index;
MakeRoadDepot(tile, _current_player, p1);
+ MarkTileDirtyByTile(tile);
}
return cost + _price.build_road_depot;
}