water_cmd.c
changeset 1214 33e07bbb7779
parent 1209 a1ac96655b79
child 1313 bba6afb8a995
--- a/water_cmd.c	Sat Jan 29 14:56:25 2005 +0000
+++ b/water_cmd.c	Sat Jan 29 15:12:40 2005 +0000
@@ -320,7 +320,7 @@
 {
 	byte m5 = _map5[tile];
 
-	switch (TileType(tile)) {
+	switch (GetTileType(tile)) {
 		case MP_WATER:
 			// true, if not coast/riverbank
 			return m5 != 1;
@@ -502,7 +502,7 @@
 	if (TileHeight(TILE_ADD(tile, ToTileIndexDiff(offs[3]))) != 0 ||
 			TileHeight(TILE_ADD(tile, ToTileIndexDiff(offs[4]))) != 0) {
 		// make coast..
-		switch (TileType(target)) {
+		switch (GetTileType(target)) {
 			case MP_RAILWAY: {
 				uint slope = GetTileSlope(target, NULL);
 				byte tracks = _map5[target] & 0x3F;