File diff r23022:731ae1300799 → r23023:7b8669afd1db
src/newgrf_text.cpp
Show inline comments
 
@@ -326,13 +326,13 @@ struct UnmappedChoiceList : ZeroedMemory
 
/**
 
 * Translate TTDPatch string codes into something OpenTTD can handle (better).
 
 * @param grfid          The (NewGRF) ID associated with this string
 
 * @param language_id    The (NewGRF) language ID associated with this string.
 
 * @param allow_newlines Whether newlines are allowed in the string or not.
 
 * @param str            The string to translate.
 
 * @param [out] olen     The length of the final string.
 
 * @param[out] olen      The length of the final string.
 
 * @param byte80         The control code to use as replacement for the 0x80-value.
 
 * @return The translated string.
 
 */
 
char *TranslateTTDPatchCodes(uint32 grfid, uint8 language_id, bool allow_newlines, const char *str, int *olen, StringControlCode byte80)
 
{
 
	char *tmp = MallocT<char>(strlen(str) * 10 + 1); // Allocate space to allow for expansion