equal
deleted
inserted
replaced
286 /* sets up the string for the vehicle that is being replaced to */ |
286 /* sets up the string for the vehicle that is being replaced to */ |
287 if (selected_id[0] != INVALID_ENGINE) { |
287 if (selected_id[0] != INVALID_ENGINE) { |
288 if (!EngineHasReplacementForPlayer(p, selected_id[0], selected_group)) { |
288 if (!EngineHasReplacementForPlayer(p, selected_id[0], selected_group)) { |
289 SetDParam(0, STR_NOT_REPLACING); |
289 SetDParam(0, STR_NOT_REPLACING); |
290 } else { |
290 } else { |
291 SetDParam(0, GetCustomEngineName(EngineReplacementForPlayer(p, selected_id[0], selected_group))); |
291 SetDParam(0, STR_ENGINE_NAME); |
|
292 SetDParam(1, EngineReplacementForPlayer(p, selected_id[0], selected_group)); |
292 } |
293 } |
293 } else { |
294 } else { |
294 SetDParam(0, STR_NOT_REPLACING_VEHICLE_SELECTED); |
295 SetDParam(0, STR_NOT_REPLACING_VEHICLE_SELECTED); |
295 } |
296 } |
296 |
297 |