equal
deleted
inserted
replaced
774 cost = AddEngineReplacementForPlayer(p, old_engine_type, new_engine_type, flags); |
774 cost = AddEngineReplacementForPlayer(p, old_engine_type, new_engine_type, flags); |
775 } else { |
775 } else { |
776 cost = RemoveEngineReplacementForPlayer(p, old_engine_type, flags); |
776 cost = RemoveEngineReplacementForPlayer(p, old_engine_type, flags); |
777 } |
777 } |
778 |
778 |
779 if (IsLocalPlayer()) InvalidateWindow(WC_REPLACE_VEHICLE, GetEngine(old_engine_type)->type); |
779 if (IsLocalPlayer()) InvalidateAutoreplaceWindow(old_engine_type); |
780 |
780 |
781 return cost; |
781 return cost; |
782 } |
782 } |
783 |
783 |
784 case 4: |
784 case 4: |