Merge branch 'master' into jgrpp
# Conflicts: # docs/landscape.html # docs/landscape_grid.html # src/bridge_gui.cpp # src/bridge_map.h # src/rail_cmd.cpp # src/rail_gui.cpp # src/rail_map.h # src/rail_type.h # src/road_map.h # src/saveload/afterload.cpp # src/saveload/map_sl.cpp # src/saveload/saveload.cpp # src/script/api/script_rail.cpp # src/station_cmd.cpp # src/tunnel_map.h # src/tunnelbridge_cmd.cpp
This commit is contained in:
@@ -285,7 +285,7 @@ CommandCost CheckBridgeAvailability(BridgeType bridge_type, uint bridge_len, DoC
|
||||
* @param p1 packed start tile coords (~ dx)
|
||||
* @param p2 various bitstuffed elements
|
||||
* - p2 = (bit 0- 7) - bridge type (hi bh)
|
||||
* - p2 = (bit 8-12) - rail type or road types.
|
||||
* - p2 = (bit 8-13) - rail type or road types.
|
||||
* - p2 = (bit 15-16) - transport type.
|
||||
* @param text unused
|
||||
* @return the cost of this operation or an error
|
||||
@@ -312,7 +312,7 @@ CommandCost CmdBuildBridge(TileIndex end_tile, DoCommandFlag flags, uint32 p1, u
|
||||
break;
|
||||
|
||||
case TRANSPORT_RAIL:
|
||||
railtype = Extract<RailType, 8, 5>(p2);
|
||||
railtype = Extract<RailType, 8, 6>(p2);
|
||||
if (!ValParamRailtype(railtype)) return CMD_ERROR;
|
||||
break;
|
||||
|
||||
@@ -721,7 +721,7 @@ static inline CommandCost CanBuildChunnel(TileIndex tile, DiagDirection directio
|
||||
* Build Tunnel.
|
||||
* @param start_tile start tile of tunnel
|
||||
* @param flags type of operation
|
||||
* @param p1 bit 0-4 railtype or roadtypes
|
||||
* @param p1 bit 0-5 railtype or roadtypes
|
||||
* bit 8-9 transport type
|
||||
* @param p2 unused
|
||||
* @param text unused
|
||||
@@ -738,7 +738,7 @@ CommandCost CmdBuildTunnel(TileIndex start_tile, DoCommandFlag flags, uint32 p1,
|
||||
_build_tunnel_endtile = 0;
|
||||
switch (transport_type) {
|
||||
case TRANSPORT_RAIL:
|
||||
railtype = Extract<RailType, 0, 5>(p1);
|
||||
railtype = Extract<RailType, 0, 6>(p1);
|
||||
if (!ValParamRailtype(railtype)) return CMD_ERROR;
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user