Merge branch 'master' into jgrpp
# Conflicts: # src/core/strong_typedef_type.hpp # src/gfx.cpp # src/group_cmd.cpp # src/industry_cmd.cpp # src/map_func.h # src/newgrf_debug_gui.cpp # src/order_cmd.cpp # src/pathfinder/follow_track.hpp # src/rail_cmd.cpp # src/road_cmd.cpp # src/road_gui.cpp # src/saveload/saveload.cpp # src/screenshot.cpp # src/smallmap_gui.cpp # src/station_cmd.cpp # src/strings.cpp # src/tile_type.h # src/timetable_gui.cpp # src/town_cmd.cpp # src/train_cmd.cpp # src/viewport.cpp
This commit is contained in:
@@ -52,7 +52,7 @@ static inline bool MayHaveRoad(TileIndex t)
|
||||
* @pre IsTileType(t, MP_ROAD)
|
||||
* @return The road tile type.
|
||||
*/
|
||||
static inline RoadTileType GetRoadTileType(TileIndex t)
|
||||
debug_inline static RoadTileType GetRoadTileType(TileIndex t)
|
||||
{
|
||||
dbg_assert_tile(IsTileType(t, MP_ROAD), t);
|
||||
return (RoadTileType)GB(_m[t].m5, 6, 2);
|
||||
@@ -64,7 +64,7 @@ static inline RoadTileType GetRoadTileType(TileIndex t)
|
||||
* @pre IsTileType(t, MP_ROAD)
|
||||
* @return True if normal road.
|
||||
*/
|
||||
static inline bool IsNormalRoad(TileIndex t)
|
||||
debug_inline static bool IsNormalRoad(TileIndex t)
|
||||
{
|
||||
return GetRoadTileType(t) == ROAD_TILE_NORMAL;
|
||||
}
|
||||
@@ -74,7 +74,7 @@ static inline bool IsNormalRoad(TileIndex t)
|
||||
* @param t Tile to query.
|
||||
* @return True if normal road tile.
|
||||
*/
|
||||
static inline bool IsNormalRoadTile(TileIndex t)
|
||||
debug_inline static bool IsNormalRoadTile(TileIndex t)
|
||||
{
|
||||
return IsTileType(t, MP_ROAD) && IsNormalRoad(t);
|
||||
}
|
||||
@@ -106,7 +106,7 @@ static inline bool IsLevelCrossingTile(TileIndex t)
|
||||
* @pre IsTileType(t, MP_ROAD)
|
||||
* @return True if road depot.
|
||||
*/
|
||||
static inline bool IsRoadDepot(TileIndex t)
|
||||
debug_inline static bool IsRoadDepot(TileIndex t)
|
||||
{
|
||||
return GetRoadTileType(t) == ROAD_TILE_DEPOT;
|
||||
}
|
||||
@@ -116,7 +116,7 @@ static inline bool IsRoadDepot(TileIndex t)
|
||||
* @param t Tile to query.
|
||||
* @return True if road depot tile.
|
||||
*/
|
||||
static inline bool IsRoadDepotTile(TileIndex t)
|
||||
debug_inline static bool IsRoadDepotTile(TileIndex t)
|
||||
{
|
||||
return IsTileType(t, MP_ROAD) && IsRoadDepot(t);
|
||||
}
|
||||
|
Reference in New Issue
Block a user