summaryrefslogtreecommitdiff
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
commit997901189fe5849a93e9ae9a51bc6ff501166e2f (patch)
tree22ad8bc2906ba7212dc41f287a24349f92a5b600
parent54d7cb8f7cb4ef522dfc694de0c68272930ffd90 (diff)
downloadopenttd-997901189fe5849a93e9ae9a51bc6ff501166e2f.tar.xz
(svn r9946) -Fix: more places that weren't correctly marked dirty...
-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));