clear_cmd.c
changeset 856 07dc27d0503e
parent 679 e959706a3e4d
child 863 8d09f9331a80
equal deleted inserted replaced
855:175e5701e467 856:07dc27d0503e
    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)