Changeset - r18190:59b53cc8b5fd
[Not reviewed]
master
0 2 0
yexo - 13 years ago 2011-10-14 16:51:30
yexo@openttd.org
(svn r23029) -Fix: [NewGRF] support for cases in strings was broken
2 files changed with 3 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/newgrf_text.cpp
Show inline comments
 
@@ -528,7 +528,7 @@ char *TranslateTTDPatchCodes(uint32 grfi
 
						int mapped = lm != NULL ? lm->GetMapping(index, code == 0x0E) : -1;
 
						if (mapped >= 0) {
 
							d += Utf8Encode(d, code == 0x0E ? SCC_GENDER_INDEX : SCC_SETCASE);
 
							d += Utf8Encode(d, mapped);
 
							d += Utf8Encode(d, code == 0x0E ? mapped : mapped + 1);
 
						}
 
						break;
 
					}
src/strings.cpp
Show inline comments
 
@@ -715,6 +715,8 @@ static char *FormatString(char *buff, co
 
			case SCC_NEWGRF_PRINT_WORD_STRING_ID: {
 
				StringID substr = args->GetInt32(SCC_NEWGRF_PRINT_WORD_STRING_ID);
 
				str_stack.push(GetStringPtr(substr));
 
				casei = modifier >> 24;
 
				modifier = 0;
 
				break;
 
			}
 

	
0 comments (0 inline, 0 general)