Changeset - r3374:634ee8be4222
[Not reviewed]
master
0 1 0
celestar - 19 years ago 2006-03-30 12:00:35
celestar@openttd.org
(svn r4173) -Codechange: Use IsClearWaterTile for buoy construction
1 file changed with 1 insertions and 6 deletions:
0 comments (0 inline, 0 general)
station_cmd.c
Show inline comments
 
@@ -1684,12 +1684,7 @@ int32 CmdBuildBuoy(int x, int y, uint32 
 

	
 
	SET_EXPENSES_TYPE(EXPENSES_CONSTRUCTION);
 

	
 
	if (!IsTileType(tile, MP_WATER) ||
 
			_m[tile].m5 != 0 ||
 
			GetTileSlope(tile, NULL) != 0 ||
 
			tile == 0) {
 
		return_cmd_error(STR_304B_SITE_UNSUITABLE);
 
	}
 
	if (!IsClearWaterTile(tile) || tile == 0) return_cmd_error(STR_304B_SITE_UNSUITABLE);
 

	
 
	st = AllocateStation();
 
	if (st == NULL) return CMD_ERROR;
0 comments (0 inline, 0 general)