equal
deleted
inserted
replaced
265 w->cur_image = 0xF3D; |
265 w->cur_image = 0xF3D; |
266 VehiclePositionChanged(w); |
266 VehiclePositionChanged(w); |
267 } |
267 } |
268 |
268 |
269 InvalidateWindow(WC_VEHICLE_DEPOT, v->tile); |
269 InvalidateWindow(WC_VEHICLE_DEPOT, v->tile); |
270 _vehicle_sort_dirty[VEHAIRCRAFT] = true; // build aircraft |
270 RebuildVehicleLists(); |
271 InvalidateWindow(WC_AIRCRAFT_LIST, v->owner); |
|
272 InvalidateWindow(WC_COMPANY, v->owner); |
271 InvalidateWindow(WC_COMPANY, v->owner); |
273 } |
272 } |
274 |
273 |
275 return value; |
274 return value; |
276 } |
275 } |
297 |
296 |
298 |
297 |
299 static void DoDeleteAircraft(Vehicle *v) |
298 static void DoDeleteAircraft(Vehicle *v) |
300 { |
299 { |
301 DeleteWindowById(WC_VEHICLE_VIEW, v->index); |
300 DeleteWindowById(WC_VEHICLE_VIEW, v->index); |
302 _vehicle_sort_dirty[VEHAIRCRAFT] = true; // delete aircraft |
301 RebuildVehicleLists(); |
303 InvalidateWindow(WC_AIRCRAFT_LIST, v->owner); |
|
304 InvalidateWindow(WC_COMPANY, v->owner); |
302 InvalidateWindow(WC_COMPANY, v->owner); |
305 DeleteVehicleChain(v); |
303 DeleteVehicleChain(v); |
306 } |
304 } |
307 |
305 |
308 // p1 = vehicle |
306 // p1 = vehicle |