diff options
author | rubidium <rubidium@openttd.org> | 2007-05-26 22:01:49 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-05-26 22:01:49 +0000 |
commit | ff0bf9fb1f908f16888812bce1bb1cabe848cf39 (patch) | |
tree | 22ad8bc2906ba7212dc41f287a24349f92a5b600 /src | |
parent | 567035ebb5a7f602242caa3a982278a491250e0f (diff) | |
download | openttd-ff0bf9fb1f908f16888812bce1bb1cabe848cf39.tar.xz |
(svn r9946) -Fix: more places that weren't correctly marked dirty...
Diffstat (limited to 'src')
-rw-r--r-- | src/road_cmd.cpp | 2 |
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)); |