File diff r3640:7db2b7b4f5a7 → r3641:bf8cbe28f2dc
newgrf.c
Show inline comments
 
@@ -1722,12 +1722,13 @@ static void VehicleNewName(byte *buf, in
 
	uint8 feature;
 
	uint8 lang;
 
	uint8 num;
 
	uint16 id;
 
	uint16 endid;
 
	const char* name;
 
	bool new_scheme = _cur_grffile->grf_version < 7;
 

	
 
	check_length(len, 6, "VehicleNewName");
 
	buf++;
 
	feature  = grf_load_byte(&buf);
 
	lang     = grf_load_byte(&buf);
 
	num      = grf_load_byte(&buf);
 
@@ -1751,13 +1752,13 @@ static void VehicleNewName(byte *buf, in
 

	
 
			switch (feature) {
 
				case GSF_TRAIN:
 
				case GSF_ROAD:
 
				case GSF_SHIP:
 
				case GSF_AIRCRAFT: {
 
					StringID string = AddGRFString(_cur_grffile->grfid, id, lang, name);
 
					StringID string = AddGRFString(_cur_grffile->grfid, id, lang, new_scheme, name);
 
					if (id < TOTAL_NUM_ENGINES) SetCustomEngineName(id, string);
 
					break;
 
				}
 

	
 
#if 0
 
				case GSF_STATION: