(svn r10323) -Codechange: reference company name, number and player (president) name

by index
This commit is contained in:
peter1138
2007-06-25 13:30:38 +00:00
parent 4e1e697bc6
commit 8ee9e8bf1e
19 changed files with 114 additions and 140 deletions

View File

@@ -1012,11 +1012,8 @@ static void DoAutosave()
#endif /* PSP */
if (_patches.keep_all_autosave && _local_player != PLAYER_SPECTATOR) {
const Player *p = GetPlayer(_local_player);
SetDParam(0, p->name_1);
SetDParam(1, p->name_2);
SetDParam(2, _date);
SetDParam(0, _local_player);
SetDParam(1, _date);
GetString(buf, STR_4004, lastof(buf));
ttd_strlcpy(buf, ".sav", sizeof(buf));
} else {