(svn r22411) -Document: another bunch of bits

This commit is contained in:
rubidium
2011-05-02 17:42:12 +00:00
parent 4d5dbf5170
commit fb5ecb9499
34 changed files with 155 additions and 19 deletions

View File

@@ -187,6 +187,12 @@ static inline TileIndexDiff TileDiffXY(int x, int y)
return (y * MapSizeX()) + x;
}
/**
* Get a tile from the virtual XY-coordinate.
* @param x The virtual x coordinate of the tile.
* @param y The virtual y coordinate of the tile.
* @return The TileIndex calculated by the coordinate.
*/
static inline TileIndex TileVirtXY(uint x, uint y)
{
return (y >> 4 << MapLogX()) + (x >> 4);