summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKUDr <kudr@openttd.org>2006-12-03 12:17:35 +0000
committerKUDr <kudr@openttd.org>2006-12-03 12:17:35 +0000
commit7395780daf6fdbee4d423c5a260c7e70559f340b (patch)
treed8accb5a3e9a2255a2bde03c565301258657139b
parent039794e83ca40717e0a5aff927f20e7a560ac7c5 (diff)
downloadopenttd-7395780daf6fdbee4d423c5a260c7e70559f340b.tar.xz
(svn r7327) -Fix: [YAPF] missing YAPF cache notification when building road on rail (new crossing) or removing road from crossing
-rw-r--r--road_cmd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/road_cmd.c b/road_cmd.c
index 8c4da968e..116efd547 100644
--- a/road_cmd.c
+++ b/road_cmd.c
@@ -191,6 +191,7 @@ int32 CmdRemoveRoad(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
MakeRailNormal(tile, GetTileOwner(tile), GetCrossingRailBits(tile), GetRailTypeCrossing(tile));
MarkTileDirtyByTile(tile);
+ YapfNotifyTrackLayoutChange(tile, FIND_FIRST_BIT(GetTrackBits(tile)));
}
return _price.remove_road * 2;
}
@@ -354,6 +355,7 @@ int32 CmdBuildRoad(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
if (!EnsureNoVehicle(tile)) return CMD_ERROR;
if (flags & DC_EXEC) {
+ YapfNotifyTrackLayoutChange(tile, FIND_FIRST_BIT(GetTrackBits(tile)));
MakeRoadCrossing(tile, _current_player, GetTileOwner(tile), roaddir, GetRailType(tile), p2);
MarkTileDirtyByTile(tile);
}