equal
deleted
inserted
replaced
895 |
895 |
896 InvalidateWindowData(WC_VEHICLE_DEPOT, v->tile); |
896 InvalidateWindowData(WC_VEHICLE_DEPOT, v->tile); |
897 RebuildVehicleLists(); |
897 RebuildVehicleLists(); |
898 InvalidateWindow(WC_COMPANY, v->owner); |
898 InvalidateWindow(WC_COMPANY, v->owner); |
899 if (IsLocalPlayer()) |
899 if (IsLocalPlayer()) |
900 InvalidateAutoreplaceWindow(VEH_SHIP, v->group_id); // updates the replace Ship window |
900 InvalidateAutoreplaceWindow(v->engine_type, v->group_id); // updates the replace Ship window |
901 |
901 |
902 GetPlayer(_current_player)->num_engines[p1]++; |
902 GetPlayer(_current_player)->num_engines[p1]++; |
903 |
903 |
904 v_auto_delete.Detach(); |
904 v_auto_delete.Detach(); |
905 } |
905 } |