equal
deleted
inserted
replaced
186 InvalidateWindow(WC_VEHICLE_DEPOT, v->tile); |
186 InvalidateWindow(WC_VEHICLE_DEPOT, v->tile); |
187 RebuildVehicleLists(); |
187 RebuildVehicleLists(); |
188 InvalidateWindow(WC_COMPANY, v->owner); |
188 InvalidateWindow(WC_COMPANY, v->owner); |
189 } |
189 } |
190 |
190 |
|
191 InvalidateWindow(WC_REPLACE_VEHICLE, VEH_Road); // updates the replace Road window |
|
192 |
191 return cost; |
193 return cost; |
192 } |
194 } |
193 |
195 |
194 // p1 = vehicle |
196 // p1 = vehicle |
195 int32 CmdStartStopRoadVeh(int x, int y, uint32 flags, uint32 p1, uint32 p2) |
197 int32 CmdStartStopRoadVeh(int x, int y, uint32 flags, uint32 p1, uint32 p2) |
232 RebuildVehicleLists(); |
234 RebuildVehicleLists(); |
233 InvalidateWindow(WC_COMPANY, v->owner); |
235 InvalidateWindow(WC_COMPANY, v->owner); |
234 DeleteWindowById(WC_VEHICLE_VIEW, v->index); |
236 DeleteWindowById(WC_VEHICLE_VIEW, v->index); |
235 DeleteVehicle(v); |
237 DeleteVehicle(v); |
236 } |
238 } |
|
239 InvalidateWindow(WC_REPLACE_VEHICLE, VEH_Road); // updates the replace Road window |
237 |
240 |
238 return -(int32)v->value; |
241 return -(int32)v->value; |
239 } |
242 } |
240 |
243 |
241 typedef struct RoadFindDepotData { |
244 typedef struct RoadFindDepotData { |