src/road_gui.cpp
branchcpp_gui
changeset 6268 4b5241e5dd10
parent 6258 a2f86b8fd99b
child 6298 c30fe89622df
equal deleted inserted replaced
6267:7c8ec33959b1 6268:4b5241e5dd10
    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 {