equal
deleted
inserted
replaced
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) |