From ff0bf9fb1f908f16888812bce1bb1cabe848cf39 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 26 May 2007 22:01:49 +0000 Subject: (svn r9946) -Fix: more places that weren't correctly marked dirty... --- src/road_cmd.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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)); -- cgit v1.2.3-70-g09d2