Changeset - r18965:4483d36fee96
[Not reviewed]
master
0 2 0
yexo - 12 years ago 2012-01-21 13:57:24
yexo@openttd.org
(svn r23830) -Revert (r23804) [FS#4986]: while the idea was good, it causes too much trouble
2 files changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/newgrf_text.cpp
Show inline comments
 
@@ -1066,7 +1066,7 @@ uint RemapNewGRFStringControlCode(uint s
 
			case SCC_NEWGRF_UNPRINT:                *buff = max(*buff - Utf8Consume(str), buf_start); break;
 

	
 
			case SCC_NEWGRF_PRINT_WORD_STRING_ID:
 
				*argv = _newgrf_textrefstack.PopUnsignedWord();
 
				*argv = TTDPStringIDToOTTDStringIDMapping(_newgrf_textrefstack.PopUnsignedWord());
 
				break;
 
		}
 
	}
src/strings.cpp
Show inline comments
 
@@ -838,7 +838,7 @@ static char *FormatString(char *buff, co
 
			}
 

	
 
			case SCC_NEWGRF_PRINT_WORD_STRING_ID: {
 
				StringID substr = TTDPStringIDToOTTDStringIDMapping(args->GetInt32(SCC_NEWGRF_PRINT_WORD_STRING_ID));
 
				StringID substr = args->GetInt32(SCC_NEWGRF_PRINT_WORD_STRING_ID);
 
				str_stack.push(GetStringPtr(substr));
 
				case_index = next_substr_case_index;
 
				next_substr_case_index = 0;
0 comments (0 inline, 0 general)