equal
deleted
inserted
replaced
365 * @param tile tile to clear |
365 * @param tile tile to clear |
366 * @param flags of operation to conduct |
366 * @param flags of operation to conduct |
367 * @param p1 unused |
367 * @param p1 unused |
368 * @param p2 unused |
368 * @param p2 unused |
369 */ |
369 */ |
370 int32 CmdLandscapeClear(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) |
370 CommandCost CmdLandscapeClear(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) |
371 { |
371 { |
372 SET_EXPENSES_TYPE(EXPENSES_CONSTRUCTION); |
372 SET_EXPENSES_TYPE(EXPENSES_CONSTRUCTION); |
373 |
373 |
374 return _tile_type_procs[GetTileType(tile)]->clear_tile_proc(tile, flags); |
374 return _tile_type_procs[GetTileType(tile)]->clear_tile_proc(tile, flags); |
375 } |
375 } |
378 * @param tile end tile of area dragging |
378 * @param tile end tile of area dragging |
379 * @param p1 start tile of area dragging |
379 * @param p1 start tile of area dragging |
380 * @param flags of operation to conduct |
380 * @param flags of operation to conduct |
381 * @param p2 unused |
381 * @param p2 unused |
382 */ |
382 */ |
383 int32 CmdClearArea(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) |
383 CommandCost CmdClearArea(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) |
384 { |
384 { |
385 int32 cost, ret, money; |
385 CommandCost cost, ret, money; |
386 int ex; |
386 int ex; |
387 int ey; |
387 int ey; |
388 int sx, sy; |
388 int sx, sy; |
389 int x, y; |
389 int x, y; |
390 bool success = false; |
390 bool success = false; |