src/autoreplace_gui.cpp
changeset 7059 c6d12e3de0dc
parent 6687 c7b92f03d33f
child 7096 9b231813f232
equal deleted inserted replaced
7058:8105bb13ce3d 7059:c6d12e3de0dc
   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