equal
deleted
inserted
replaced
263 // Make sure no vehicle is on the tile |
263 // Make sure no vehicle is on the tile |
264 if (!EnsureNoVehicle(tile)) |
264 if (!EnsureNoVehicle(tile)) |
265 return CMD_ERROR; |
265 return CMD_ERROR; |
266 |
266 |
267 // Make sure it's not an edge tile. |
267 // Make sure it's not an edge tile. |
268 if (!(IS_INT_INSIDE(GET_TILE_X(tile),1,TILE_X_MAX-1) && |
268 if (!(IS_INT_INSIDE(GET_TILE_X(tile), 1, MapMaxX() - 1) && |
269 IS_INT_INSIDE(GET_TILE_Y(tile),1,TILE_Y_MAX-1))) |
269 IS_INT_INSIDE(GET_TILE_Y(tile), 1, MapMaxY() - 1))) |
270 return_cmd_error(STR_0002_TOO_CLOSE_TO_EDGE_OF_MAP); |
270 return_cmd_error(STR_0002_TOO_CLOSE_TO_EDGE_OF_MAP); |
271 |
271 |
272 if (m5 == 0) { |
272 if (m5 == 0) { |
273 if (flags & DC_EXEC) |
273 if (flags & DC_EXEC) |
274 DoClearSquare(tile); |
274 DoClearSquare(tile); |