equal
deleted
inserted
replaced
15 #include "string.h" |
15 #include "string.h" |
16 #include "strings.h" |
16 #include "strings.h" |
17 #include "variables.h" |
17 #include "variables.h" |
18 #include "macros.h" |
18 #include "macros.h" |
19 #include "table/strings.h" |
19 #include "table/strings.h" |
|
20 #include "newgrf.h" |
20 #include "newgrf_text.h" |
21 #include "newgrf_text.h" |
21 #include "table/control_codes.h" |
22 #include "table/control_codes.h" |
22 |
23 |
23 #define GRFTAB 28 |
24 #define GRFTAB 28 |
24 #define TABSIZE 11 |
25 #define TABSIZE 11 |
325 |
326 |
326 /* If a string wasn't replaced, then we must append the new string */ |
327 /* If a string wasn't replaced, then we must append the new string */ |
327 if (!replaced) *ptext = newtext; |
328 if (!replaced) *ptext = newtext; |
328 } |
329 } |
329 |
330 |
330 DEBUG(grf, 2)("Added 0x%X: grfid 0x%X string 0x%X lang 0x%X string %s", id, grfid, stringid, newtext->langid, newtext->text); |
331 grfmsg(3, "Added 0x%X: grfid %08X string 0x%X lang 0x%X string '%s'", id, grfid, stringid, newtext->langid, newtext->text); |
331 |
332 |
332 return (GRFTAB << TABSIZE) + id; |
333 return (GRFTAB << TABSIZE) + id; |
333 } |
334 } |
334 |
335 |
335 /* Used to remember the grfid that the last retrieved string came from */ |
336 /* Used to remember the grfid that the last retrieved string came from */ |