equal
deleted
inserted
replaced
892 |
892 |
893 InvalidateWindowData(WC_VEHICLE_DEPOT, v->tile); |
893 InvalidateWindowData(WC_VEHICLE_DEPOT, v->tile); |
894 RebuildVehicleLists(); |
894 RebuildVehicleLists(); |
895 InvalidateWindow(WC_COMPANY, v->owner); |
895 InvalidateWindow(WC_COMPANY, v->owner); |
896 if (IsLocalPlayer()) |
896 if (IsLocalPlayer()) |
897 InvalidateAutoreplaceWindow(VEH_SHIP); // updates the replace Ship window |
897 InvalidateAutoreplaceWindow(VEH_SHIP, v->group_id); // updates the replace Ship window |
898 |
898 |
899 GetPlayer(_current_player)->num_engines[p1]++; |
899 GetPlayer(_current_player)->num_engines[p1]++; |
900 } |
900 } |
901 |
901 |
902 return value; |
902 return value; |