|
|
|
@ -1807,6 +1807,7 @@ struct BuildVehicleWindow : BuildVehicleWindowBase {
|
|
|
|
|
|
|
|
|
|
InvalidateWindowData(WC_REPLACE_VEHICLE, this->vehicle_type, 0); // Update the autoreplace window
|
|
|
|
|
InvalidateWindowClassesData(WC_BUILD_VEHICLE); // The build windows needs updating as well
|
|
|
|
|
InvalidateWindowClassesData(WC_BUILD_VIRTUAL_TRAIN);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if ((item.flags & EngineDisplayFlags::Shaded) == EngineDisplayFlags::None) e = item.engine_id;
|
|
|
|
@ -1865,6 +1866,7 @@ struct BuildVehicleWindow : BuildVehicleWindowBase {
|
|
|
|
|
if (refresh) {
|
|
|
|
|
InvalidateWindowData(WC_REPLACE_VEHICLE, this->vehicle_type, 0); // Update the autoreplace window
|
|
|
|
|
InvalidateWindowClassesData(WC_BUILD_VEHICLE); // The build windows needs updating as well
|
|
|
|
|
InvalidateWindowClassesData(WC_BUILD_VIRTUAL_TRAIN);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -2563,6 +2565,7 @@ struct BuildVehicleWindowTrainAdvanced final : BuildVehicleWindowBase {
|
|
|
|
|
if (refresh) {
|
|
|
|
|
InvalidateWindowData(WC_REPLACE_VEHICLE, this->vehicle_type, 0); // Update the autoreplace window
|
|
|
|
|
InvalidateWindowClassesData(WC_BUILD_VEHICLE); // The build windows needs updating as well
|
|
|
|
|
InvalidateWindowClassesData(WC_BUILD_VIRTUAL_TRAIN);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -2584,6 +2587,7 @@ struct BuildVehicleWindowTrainAdvanced final : BuildVehicleWindowBase {
|
|
|
|
|
|
|
|
|
|
InvalidateWindowData(WC_REPLACE_VEHICLE, this->vehicle_type, 0); // Update the autoreplace window
|
|
|
|
|
InvalidateWindowClassesData(WC_BUILD_VEHICLE); // The build windows needs updating as well
|
|
|
|
|
InvalidateWindowClassesData(WC_BUILD_VIRTUAL_TRAIN);
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
if ((item.flags & EngineDisplayFlags::Shaded) == EngineDisplayFlags::None) e = item.engine_id;
|
|
|
|
|