newgrf_text.c
changeset 5228 c4a780348f66
parent 5208 71f3d9cfed95
child 5344 026148c4f06f
equal deleted inserted replaced
5227:733a73627cb9 5228:c4a780348f66
   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;