1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-21 13:39:09 +00:00

(svn r10316) -Codechange: (consistently) use index to refer to group names. Also the group string_id is irrelevant unless it is a custom name, so don't 'waste' a savegame string id.

This commit is contained in:
2007-06-25 07:33:40 +00:00
parent d1805ed054
commit 74e34ee729
4 changed files with 7 additions and 8 deletions

View File

@@ -857,7 +857,7 @@ static char* FormatString(char* buff, const char* str, const int64* argv, uint c
assert(IsValidGroup(g));
args[0] = g->index;
buff = GetStringWithArgs(buff, (g->string_id == STR_SV_GROUP_NAME) ? (StringID)STR_GROUP_NAME_FORMAT : g->string_id, args, last);
buff = GetStringWithArgs(buff, IsCustomName(g->string_id) ? g->string_id : (StringID)STR_GROUP_NAME_FORMAT, args, last);
break;
}