clear_cmd.c
changeset 856 918759cedca8
parent 679 04ca2cd69420
child 863 6a1444534f62
equal deleted inserted replaced
855:77d7ff319a94 856:918759cedca8
    28 static int TerraformAllowTileProcess(TerraformerState *ts, TileIndex tile)
    28 static int TerraformAllowTileProcess(TerraformerState *ts, TileIndex tile)
    29 {
    29 {
    30 	TileIndex *t;
    30 	TileIndex *t;
    31 	int count;
    31 	int count;
    32 
    32 
    33 	if ((GET_TILE_X(tile) == TILE_X_MAX) || (GET_TILE_Y(tile) == TILE_Y_MAX))
    33 	if (GET_TILE_X(tile) == MapMaxX() || GET_TILE_Y(tile) == MapMaxY())
    34 		return -1;
    34 		return -1;
    35 
    35 
    36 	t = ts->tile_table;
    36 	t = ts->tile_table;
    37 	for(count = ts->tile_table_count; count != 0; count--,t++) {
    37 	for(count = ts->tile_table_count; count != 0; count--,t++) {
    38 		if (*t == tile)
    38 		if (*t == tile)