newgrf_text.c
changeset 5228 26dc9acf7d94
parent 5208 3875a79e5596
child 5344 7d75e667692a
equal deleted inserted replaced
5227:185f1b7133dc 5228:26dc9acf7d94
   152 static uint _num_grf_texts = 0;
   152 static uint _num_grf_texts = 0;
   153 static GRFTextEntry _grf_text[(1 << TABSIZE) * 3];
   153 static GRFTextEntry _grf_text[(1 << TABSIZE) * 3];
   154 static byte _currentLangID = GRFLX_ENGLISH;  //by default, english is used.
   154 static byte _currentLangID = GRFLX_ENGLISH;  //by default, english is used.
   155 
   155 
   156 
   156 
   157 static char *TranslateTTDPatchCodes(const char *str)
   157 char *TranslateTTDPatchCodes(const char *str)
   158 {
   158 {
   159 	char *tmp = malloc(strlen(str) * 10 + 1); /* Allocate space to allow for expansion */
   159 	char *tmp = malloc(strlen(str) * 10 + 1); /* Allocate space to allow for expansion */
   160 	char *d = tmp;
   160 	char *d = tmp;
   161 	bool unicode = false;
   161 	bool unicode = false;
   162 	WChar c;
   162 	WChar c;