Changeset - r8331:21889f63cff8
[Not reviewed]
master
0 3 0
frosch - 17 years ago 2008-01-17 16:55:13
frosch@openttd.org
(svn r11897) -Fix: Replace an uint with TileIndex and a small coding style fix.
3 files changed with 4 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/map.cpp
Show inline comments
 
@@ -139,7 +139,7 @@ uint ScaleByMapSize1D(uint n)
 
 * @param addy the amount of tiles in the Y direction to add
 
 * @return translated tile, or INVALID_TILE when it would've wrapped.
 
 */
 
uint TileAddWrap(TileIndex tile, int addx, int addy)
 
TileIndex TileAddWrap(TileIndex tile, int addx, int addy)
 
{
 
	uint x = TileX(tile) + addx;
 
	uint y = TileY(tile) + addy;
src/map_func.h
Show inline comments
 
@@ -227,7 +227,7 @@ static inline TileIndexDiff ToTileIndexD
 
/**
 
 * Adds an offset to a tile and check if we are still on the map.
 
 */
 
uint TileAddWrap(TileIndex tile, int addx, int addy);
 
TileIndex TileAddWrap(TileIndex tile, int addx, int addy);
 

	
 
/**
 
 * Returns the TileIndexDiffC offset from a DiagDirection.
src/water_cmd.cpp
Show inline comments
 
@@ -577,7 +577,8 @@ static void AnimateTile_Water(TileIndex 
 
 *
 
 * @param tile tile to check
 
 */
 
static inline void MarkTileDirtyIfCanal(TileIndex tile) {
 
static inline void MarkTileDirtyIfCanal(TileIndex tile)
 
{
 
	if (IsTileType(tile, MP_WATER) && IsCanal(tile)) MarkTileDirtyByTile(tile);
 
}
 

	
0 comments (0 inline, 0 general)