changeset 8331:cecb4db460a2 draft

(svn r11897) -Fix: Replace an uint with TileIndex and a small coding style fix.
author frosch <frosch@openttd.org>
date Thu, 17 Jan 2008 16:55:13 +0000
parents 43831761bc77
children 51c891bcfc8b
files src/map.cpp src/map_func.h src/water_cmd.cpp
diffstat 3 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -139,7 +139,7 @@
  * @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;
--- a/src/map_func.h
+++ b/src/map_func.h
@@ -227,7 +227,7 @@
 /**
  * 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.
--- a/src/water_cmd.cpp
+++ b/src/water_cmd.cpp
@@ -577,7 +577,8 @@
  *
  * @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);
 }