Changeset - r5212:ca3e9eb06dcd
[Not reviewed]
master
0 1 0
KUDr - 18 years ago 2006-12-03 12:17:35
kudr@openttd.org
(svn r7327) -Fix: [YAPF] missing YAPF cache notification when building road on rail (new crossing) or removing road from crossing
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
road_cmd.c
Show inline comments
 
@@ -191,6 +191,7 @@ int32 CmdRemoveRoad(TileIndex tile, uint
 

	
 
						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, uint3
 
			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);
 
			}
0 comments (0 inline, 0 general)