Mercurial > hg > openttd
changeset 7536:52edfe2a54b8 draft
(svn r11056) -Fix [FS#1213]: road/tram tiles would not always get marked dirty properly, causing glitches for non-local players. Patch by SmatZ.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Fri, 07 Sep 2007 21:17:01 +0000 |
parents | a8b280b611d6 |
children | 1487ca635293 |
files | src/road_cmd.cpp |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/road_cmd.cpp +++ b/src/road_cmd.cpp @@ -198,10 +198,12 @@ if (present == ROAD_NONE) { RoadTypes rts = GetRoadTypes(tile) & ComplementRoadTypes(RoadTypeToRoadTypes(rt)); if (rts == ROADTYPES_NONE) { + /* Includes MarkTileDirtyByTile() */ DoClearSquare(tile); } else { SetRoadBits(tile, ROAD_NONE, rt); SetRoadTypes(tile, rts); + MarkTileDirtyByTile(tile); } } else { /* When bits are removed, you *always* end up with something that