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
commit6c1576143bb031c7c0ebb94f6b45dc6ce007382f (patch)
tree50e8c78c1fc8e1a7d3b7735336cedf5c92d40fc5
parent0d044cabca9a1dcae15892de613dd418bfe093f7 (diff)
downloadopenttd-6c1576143bb031c7c0ebb94f6b45dc6ce007382f.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;
}