|
@@ -103,12 +103,14 @@ static void MarkCanalsAndRiversAroundDir
|
|
|
|
|
|
/** Build a ship depot.
|
|
|
* @param tile tile where ship depot is built
|
|
|
* @param flags type of operation
|
|
|
* @param p1 bit 0 depot orientation (Axis)
|
|
|
* @param p2 unused
|
|
|
* @param text unused
|
|
|
* @return the cost of this operation or an error
|
|
|
*/
|
|
|
CommandCost CmdBuildShipDepot(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32 p2, const char *text)
|
|
|
{
|
|
|
TileIndex tile2;
|
|
|
|
|
|
CommandCost ret;
|
|
@@ -267,12 +269,14 @@ static CommandCost RemoveShiplift(TileIn
|
|
|
|
|
|
/** Builds a lock (ship-lift)
|
|
|
* @param tile tile where to place the lock
|
|
|
* @param flags type of operation
|
|
|
* @param p1 unused
|
|
|
* @param p2 unused
|
|
|
* @param text unused
|
|
|
* @return the cost of this operation or an error
|
|
|
*/
|
|
|
CommandCost CmdBuildLock(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32 p2, const char *text)
|
|
|
{
|
|
|
DiagDirection dir = GetInclinedSlopeDirection(GetTileSlope(tile, NULL));
|
|
|
if (dir == INVALID_DIAGDIR) return_cmd_error(STR_ERROR_LAND_SLOPED_IN_WRONG_DIRECTION);
|
|
|
|
|
@@ -284,12 +288,14 @@ CommandCost CmdBuildLock(TileIndex tile,
|
|
|
|
|
|
/** Build a piece of canal.
|
|
|
* @param tile end tile of stretch-dragging
|
|
|
* @param flags type of operation
|
|
|
* @param p1 start tile of stretch-dragging
|
|
|
* @param p2 specifies canal (0), water (1) or river (2); last two can only be built in scenario editor
|
|
|
* @param text unused
|
|
|
* @return the cost of this operation or an error
|
|
|
*/
|
|
|
CommandCost CmdBuildCanal(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32 p2, const char *text)
|
|
|
{
|
|
|
CommandCost cost(EXPENSES_CONSTRUCTION);
|
|
|
int size_x, size_y;
|
|
|
int x;
|