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:
@@ -161,7 +161,7 @@ typedef int32 TileIndexDiff;
|
||||
* @param y The y coordinate of the tile
|
||||
* @return The TileIndex calculated by the coordinate
|
||||
*/
|
||||
static inline TileIndex TileXY(uint x, uint y)
|
||||
debug_inline static TileIndex TileXY(uint x, uint y)
|
||||
{
|
||||
return (y << MapLogX()) + x;
|
||||
}
|
||||
@@ -192,7 +192,7 @@ static inline TileIndexDiff TileDiffXY(int x, int y)
|
||||
* @param y The virtual y coordinate of the tile.
|
||||
* @return The TileIndex calculated by the coordinate.
|
||||
*/
|
||||
static inline TileIndex TileVirtXY(uint x, uint y)
|
||||
debug_inline static TileIndex TileVirtXY(uint x, uint y)
|
||||
{
|
||||
return (y >> 4 << MapLogX()) + (x >> 4);
|
||||
}
|
||||
@@ -216,7 +216,7 @@ static inline TileIndex TileVirtXYClampedToMap(int x, int y)
|
||||
* @param tile the tile to get the X component of
|
||||
* @return the X component
|
||||
*/
|
||||
static inline uint TileX(TileIndex tile)
|
||||
debug_inline static uint TileX(TileIndex tile)
|
||||
{
|
||||
return tile & MapMaxX();
|
||||
}
|
||||
@@ -226,7 +226,7 @@ static inline uint TileX(TileIndex tile)
|
||||
* @param tile the tile to get the Y component of
|
||||
* @return the Y component
|
||||
*/
|
||||
static inline uint TileY(TileIndex tile)
|
||||
debug_inline static uint TileY(TileIndex tile)
|
||||
{
|
||||
return tile >> MapLogX();
|
||||
}
|
||||
|
Reference in New Issue
Block a user