(svn r6139) -Codechange: strings are StringID. This should be changed in strings.h as well, but you would need to include openttd.h and that opens a whole new can of worms.
authorDarkvater
Sat, 26 Aug 2006 14:39:05 +0000
changeset 4386 04c0a9fe59c9
parent 4385 911321439fb4
child 4387 4899b8fc715e
(svn r6139) -Codechange: strings are StringID. This should be changed in strings.h as well, but you would need to include openttd.h and that opens a whole new can of worms.
strings.c
strings.h
--- a/strings.c	Sat Aug 26 14:36:19 2006 +0000
+++ b/strings.c	Sat Aug 26 14:39:05 2006 +0000
@@ -168,7 +168,7 @@
 // These 8 bits will only be set when FormatString wants to print
 // the string in a different case. No one else except FormatString
 // should set those bits.
-char *GetStringWithArgs(char *buffr, uint string, const int32 *argv)
+char *GetStringWithArgs(char *buffr, StringID string, const int32 *argv)
 {
 	uint index = GB(string,  0, 11);
 	uint tab   = GB(string, 11,  5);
--- a/strings.h	Sat Aug 26 14:36:19 2006 +0000
+++ b/strings.h	Sat Aug 26 14:39:05 2006 +0000
@@ -12,7 +12,7 @@
 }
 
 char *GetString(char *buffr, uint16 string);
-char *GetStringWithArgs(char *buffr, uint string, const int32 *argv);
+char *GetStringWithArgs(char *buffr, uint16 string, const int32 *argv);
 
 extern char _userstring[128];