File diff r7640:7448cde64dcb → r7641:2b26b5be3fd7
src/map.h
Show inline comments
 
@@ -390,6 +390,18 @@ static inline TileIndexDiff TileOffsByDi
 
}
 

	
 
/**
 
 * Adds a DiagDir to a tile.
 
 *
 
 * @param tile The current tile
 
 * @param dir The direction in which we want to step
 
 * @return the moved tile
 
 */
 
static inline TileIndex TileAddByDiagDir(TileIndex tile, DiagDirection dir)
 
{
 
	return TILE_ADD(tile, TileOffsByDiagDir(dir));
 
}
 

	
 
/**
 
 * A callback function type for searching tiles.
 
 *
 
 * @param tile The tile to test