equal
deleted
inserted
replaced
34 if (v->index == selection) { |
34 if (v->index == selection) { |
35 DrawFrameRect(x - 1, y - 1, x + 58, y + 21, 0xF, FR_BORDERONLY); |
35 DrawFrameRect(x - 1, y - 1, x + 58, y + 21, 0xF, FR_BORDERONLY); |
36 } |
36 } |
37 } |
37 } |
38 |
38 |
|
39 /** |
|
40 * This is the Callback method after the construction attempt of an aircraft |
|
41 * @param success indicates completion (or not) of the operation |
|
42 * @param tile of depot where aircraft is built |
|
43 * @param p1 unused |
|
44 * @param p2 unused |
|
45 */ |
39 void CcBuildAircraft(bool success, TileIndex tile, uint32 p1, uint32 p2) |
46 void CcBuildAircraft(bool success, TileIndex tile, uint32 p1, uint32 p2) |
40 { |
47 { |
41 if (success) { |
48 if (success) { |
42 const Vehicle *v = GetVehicle(_new_vehicle_id); |
49 const Vehicle *v = GetVehicle(_new_vehicle_id); |
43 |
50 |
47 } |
54 } |
48 ShowAircraftViewWindow(v); |
55 ShowAircraftViewWindow(v); |
49 } |
56 } |
50 } |
57 } |
51 |
58 |
|
59 /** |
|
60 * This is the Callback method after the cloning attempt of an aircraft |
|
61 * @param success indicates completion (or not) of the operation |
|
62 * @param tile unused |
|
63 * @param p1 unused |
|
64 * @param p2 unused |
|
65 */ |
52 void CcCloneAircraft(bool success, TileIndex tile, uint32 p1, uint32 p2) |
66 void CcCloneAircraft(bool success, TileIndex tile, uint32 p1, uint32 p2) |
53 { |
67 { |
54 if (success) ShowAircraftViewWindow(GetVehicle(_new_vehicle_id)); |
68 if (success) ShowAircraftViewWindow(GetVehicle(_new_vehicle_id)); |
55 } |
69 } |
56 |
70 |