(svn r14423) -Codechange: also do r14221 for the strings.

This commit is contained in:
rubidium
2008-09-30 21:18:28 +00:00
parent e589c7e580
commit 96156a8ab1
49 changed files with 176 additions and 392 deletions

View File

@@ -462,14 +462,14 @@ restart:;
c->president_name_1 = SPECSTR_PRESIDENT_NAME;
SetDParam(0, c->index);
GetString(buffer, STR_PLAYER_NAME, lastof(buffer));
GetString(buffer, STR_PRESIDENT_NAME, lastof(buffer));
if (strlen(buffer) >= 32 || GetStringBoundingBox(buffer).width >= 94)
continue;
FOR_ALL_COMPANIES(cc) {
if (c != cc) {
SetDParam(0, cc->index);
GetString(buffer2, STR_PLAYER_NAME, lastof(buffer2));
GetString(buffer2, STR_PRESIDENT_NAME, lastof(buffer2));
if (strcmp(buffer2, buffer) == 0)
goto restart;
}