summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-05-26 22:01:49 +0000
committerrubidium <rubidium@openttd.org>2007-05-26 22:01:49 +0000
commitff0bf9fb1f908f16888812bce1bb1cabe848cf39 (patch)
tree22ad8bc2906ba7212dc41f287a24349f92a5b600 /src
parent567035ebb5a7f602242caa3a982278a491250e0f (diff)
downloadopenttd-ff0bf9fb1f908f16888812bce1bb1cabe848cf39.tar.xz
(svn r9946) -Fix: more places that weren't correctly marked dirty...
Diffstat (limited to 'src')
-rw-r--r--src/road_cmd.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/road_cmd.cpp b/src/road_cmd.cpp
index be56d7821..64f50c832 100644
--- a/src/road_cmd.cpp
+++ b/src/road_cmd.cpp
@@ -167,6 +167,7 @@ int32 CmdRemoveRoad(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
SetRoadTypes(tile, GetRoadTypes(tile) & ~RoadTypeToRoadTypes(rt));
/* Mark tiles diry that have been repaved */
+ MarkTileDirtyByTile(tile);
MarkTileDirtyByTile(other_end);
if (IsBridge(tile)) {
TileIndexDiff delta = TileOffsByDiagDir(GetBridgeRampDirection(tile));
@@ -472,6 +473,7 @@ do_clear:;
/* Mark tiles diry that have been repaved */
MarkTileDirtyByTile(other_end);
+ MarkTileDirtyByTile(tile);
if (IsBridge(tile)) {
TileIndexDiff delta = TileOffsByDiagDir(GetBridgeRampDirection(tile));