equal
deleted
inserted
replaced
165 } |
165 } |
166 |
166 |
167 // The highest 8 bits of string contain the "case index". |
167 // The highest 8 bits of string contain the "case index". |
168 // These 8 bits will only be set when FormatString wants to print |
168 // These 8 bits will only be set when FormatString wants to print |
169 // the string in a different case. No one else except FormatString |
169 // the string in a different case. No one else except FormatString |
170 // should set those bits. |
170 // should set those bits, therefore string CANNOT be StringID, but uint32. |
171 char *GetStringWithArgs(char *buffr, StringID string, const int32 *argv) |
171 char *GetStringWithArgs(char *buffr, uint string, const int32 *argv) |
172 { |
172 { |
173 uint index = GB(string, 0, 11); |
173 uint index = GB(string, 0, 11); |
174 uint tab = GB(string, 11, 5); |
174 uint tab = GB(string, 11, 5); |
175 |
175 |
176 if (GB(string, 0, 16) == 0) error("!invalid string id 0 in GetString"); |
176 if (GB(string, 0, 16) == 0) error("!invalid string id 0 in GetString"); |