File diff r4623:16c6cd4fd786 → r4624:1a07a53b2696
newgrf_text.c
Show inline comments
 
@@ -201,15 +201,12 @@ static void TranslateTTDPatchCodes(char 
 
 */
 
StringID AddGRFString(uint32 grfid, uint16 stringid, byte langid_to_add, bool new_scheme, const char *text_to_add, StringID def_string)
 
{
 
	GRFText *newtext;
 
	uint id;
 

	
 
	/* We do not allow strings of only one char or even fewer*/
 
	if (strlen(text_to_add) <= 1) return STR_EMPTY;
 

	
 
	/* When working with the old language scheme (grf_version is less than 7) and
 
	 * English or American is among the set bits, simply add it as English in
 
	 * the new scheme, i.e. as langid = 1.
 
	 * If English is set, it is pretty safe to assume the translations are not
 
	 * actually translated.
 
	 */