equal
deleted
inserted
replaced
82 void CcRoadDepot(bool success, TileIndex tile, uint32 p1, uint32 p2) |
82 void CcRoadDepot(bool success, TileIndex tile, uint32 p1, uint32 p2) |
83 { |
83 { |
84 if (success) { |
84 if (success) { |
85 SndPlayTileFx(SND_1F_SPLAT, tile); |
85 SndPlayTileFx(SND_1F_SPLAT, tile); |
86 ResetObjectToPlace(); |
86 ResetObjectToPlace(); |
87 if (!HASBIT(p2, 1)) BuildRoadOutsideStation(tile, (DiagDirection)p1); |
87 BuildRoadOutsideStation(tile, (DiagDirection)p1); |
|
88 /* For a drive-through road stop build connecting road for other entrance */ |
|
89 if (HASBIT(p2, 1)) BuildRoadOutsideStation(tile, ReverseDiagDir((DiagDirection)p1)); |
88 } |
90 } |
89 } |
91 } |
90 |
92 |
91 static void PlaceRoad_Depot(TileIndex tile) |
93 static void PlaceRoad_Depot(TileIndex tile) |
92 { |
94 { |