Changeset - r4624:1a07a53b2696
[Not reviewed]
master
0 1 0
belugas - 18 years ago 2006-09-20 00:24:38
belugas@openttd.org
(svn r6484) -Undo (partly)r6289. If a grf writer wants a string been only a space, why should it be blocked?
It is the wrong test at the wrong place
1 file changed with 0 insertions and 3 deletions:
0 comments (0 inline, 0 general)
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.
 
	 */
0 comments (0 inline, 0 general)