equal
deleted
inserted
replaced
56 static void PlaceDocks_Buoy(TileIndex tile) |
56 static void PlaceDocks_Buoy(TileIndex tile) |
57 { |
57 { |
58 DoCommandP(tile, 0, 0, CcBuildDocks, CMD_BUILD_BUOY | CMD_MSG(STR_9835_CAN_T_POSITION_BUOY_HERE)); |
58 DoCommandP(tile, 0, 0, CcBuildDocks, CMD_BUILD_BUOY | CMD_MSG(STR_9835_CAN_T_POSITION_BUOY_HERE)); |
59 } |
59 } |
60 |
60 |
61 static void PlaceDocks_DemolishArea(TileIndex tile) |
|
62 { |
|
63 VpStartPlaceSizing(tile, VPM_X_AND_Y, DDSP_DEMOLISH_AREA); |
|
64 } |
|
65 |
|
66 static void PlaceDocks_BuildCanal(TileIndex tile) |
61 static void PlaceDocks_BuildCanal(TileIndex tile) |
67 { |
62 { |
68 VpStartPlaceSizing(tile, VPM_X_OR_Y, DDSP_CREATE_WATER); |
63 VpStartPlaceSizing(tile, VPM_X_OR_Y, DDSP_CREATE_WATER); |
69 } |
64 } |
70 |
65 |
94 HandlePlacePushButton(w, DTW_LOCK, SPR_CURSOR_LOCK, VHM_RECT, PlaceDocks_BuildLock); |
89 HandlePlacePushButton(w, DTW_LOCK, SPR_CURSOR_LOCK, VHM_RECT, PlaceDocks_BuildLock); |
95 } |
90 } |
96 |
91 |
97 static void BuildDocksClick_Demolish(Window *w) |
92 static void BuildDocksClick_Demolish(Window *w) |
98 { |
93 { |
99 HandlePlacePushButton(w, DTW_DEMOLISH, ANIMCURSOR_DEMOLISH, VHM_RECT, PlaceDocks_DemolishArea); |
94 HandlePlacePushButton(w, DTW_DEMOLISH, ANIMCURSOR_DEMOLISH, VHM_RECT, PlaceProc_DemolishArea); |
100 } |
95 } |
101 |
96 |
102 static void BuildDocksClick_Depot(Window *w) |
97 static void BuildDocksClick_Depot(Window *w) |
103 { |
98 { |
104 if (!CanBuildVehicleInfrastructure(VEH_SHIP)) return; |
99 if (!CanBuildVehicleInfrastructure(VEH_SHIP)) return; |