* When an engine is made buildable or is removed from being buildable, add/remove it from the build/autoreplace lists * @param type The type of engine */
| 66 | * @param type The type of engine |
| 67 | */ |
| 68 | void AddRemoveEngineFromAutoreplaceAndBuildWindows(VehicleType type) |
| 69 | { |
| 70 | InvalidateWindowData(WC_REPLACE_VEHICLE, type, 0); // Update the autoreplace window |
| 71 | InvalidateWindowClassesData(WC_BUILD_VEHICLE); // The build windows needs updating as well |
| 72 | } |
| 73 | |
| 74 | static const StringID _start_replace_dropdown[] = { |
| 75 | STR_REPLACE_VEHICLES_NOW, |
no test coverage detected