Merge branch 'master' into jgrpp-nrt
Merge NRT feature # Conflicts: # docs/landscape.html # docs/landscape_grid.html # src/bridge_map.h # src/build_vehicle_gui.cpp # src/company_base.h # src/company_cmd.cpp # src/misc_gui.cpp # src/newgrf.cpp # src/newgrf_engine.cpp # src/pathfinder/follow_track.hpp # src/pathfinder/npf/npf.cpp # src/road_cmd.cpp # src/road_func.h # src/road_gui.cpp # src/road_map.h # src/road_type.h # src/roadveh_cmd.cpp # src/saveload/afterload.cpp # src/saveload/company_sl.cpp # src/script/api/script_bridge.cpp # src/table/newgrf_debug_data.h # src/tile_cmd.h # src/town_cmd.cpp # src/tunnel_map.h # src/tunnelbridge_cmd.cpp
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
#include "water_map.h"
|
||||
#include "station_func.h"
|
||||
#include "rail.h"
|
||||
#include "road.h"
|
||||
|
||||
typedef byte StationGfx; ///< Index of station graphics. @see _station_display_datas
|
||||
|
||||
@@ -583,15 +584,16 @@ static inline void MakeRailWaypoint(TileIndex t, Owner o, StationID sid, Axis a,
|
||||
* @param o the owner of the roadstop
|
||||
* @param sid the station to which this tile belongs
|
||||
* @param rst the type of roadstop to make this tile
|
||||
* @param rt the roadtypes on this tile
|
||||
* @param road_rt the road roadtype on this tile
|
||||
* @param tram_rt the tram roadtype on this tile
|
||||
* @param d the direction of the roadstop
|
||||
*/
|
||||
static inline void MakeRoadStop(TileIndex t, Owner o, StationID sid, RoadStopType rst, RoadTypes rt, DiagDirection d)
|
||||
static inline void MakeRoadStop(TileIndex t, Owner o, StationID sid, RoadStopType rst, RoadType road_rt, RoadType tram_rt, DiagDirection d)
|
||||
{
|
||||
MakeStation(t, o, sid, (rst == ROADSTOP_BUS ? STATION_BUS : STATION_TRUCK), d);
|
||||
SetRoadTypes(t, rt);
|
||||
SetRoadOwner(t, ROADTYPE_ROAD, o);
|
||||
SetRoadOwner(t, ROADTYPE_TRAM, o);
|
||||
SetRoadTypes(t, road_rt, tram_rt);
|
||||
SetRoadOwner(t, RTT_ROAD, o);
|
||||
SetRoadOwner(t, RTT_TRAM, o);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -602,15 +604,16 @@ static inline void MakeRoadStop(TileIndex t, Owner o, StationID sid, RoadStopTyp
|
||||
* @param tram the owner of the tram
|
||||
* @param sid the station to which this tile belongs
|
||||
* @param rst the type of roadstop to make this tile
|
||||
* @param rt the roadtypes on this tile
|
||||
* @param road_rt the road roadtype on this tile
|
||||
* @param tram_rt the tram roadtype on this tile
|
||||
* @param a the direction of the roadstop
|
||||
*/
|
||||
static inline void MakeDriveThroughRoadStop(TileIndex t, Owner station, Owner road, Owner tram, StationID sid, RoadStopType rst, RoadTypes rt, Axis a)
|
||||
static inline void MakeDriveThroughRoadStop(TileIndex t, Owner station, Owner road, Owner tram, StationID sid, RoadStopType rst, RoadType road_rt, RoadType tram_rt, Axis a)
|
||||
{
|
||||
MakeStation(t, station, sid, (rst == ROADSTOP_BUS ? STATION_BUS : STATION_TRUCK), GFX_TRUCK_BUS_DRIVETHROUGH_OFFSET + a);
|
||||
SetRoadTypes(t, rt);
|
||||
SetRoadOwner(t, ROADTYPE_ROAD, road);
|
||||
SetRoadOwner(t, ROADTYPE_TRAM, tram);
|
||||
SetRoadTypes(t, road_rt, tram_rt);
|
||||
SetRoadOwner(t, RTT_ROAD, road);
|
||||
SetRoadOwner(t, RTT_TRAM, tram);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user