* This is the Callback method after the construction attempt of a primary vehicle * @param result indicates completion (or not) of the operation * @param new_veh_id ID of the new vehicle. */
| 3493 | * @param new_veh_id ID of the new vehicle. |
| 3494 | */ |
| 3495 | void CcBuildPrimaryVehicle(Commands, const CommandCost &result, VehicleID new_veh_id, uint, uint16_t, CargoArray) |
| 3496 | { |
| 3497 | if (result.Failed()) return; |
| 3498 | |
| 3499 | const Vehicle *v = Vehicle::Get(new_veh_id); |
| 3500 | ShowVehicleViewWindow(v); |
| 3501 | } |
| 3502 | |
| 3503 | /** |
| 3504 | * Get the width of a vehicle (part) in pixels. |
nothing calls this directly
no test coverage detected