1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-09-03 22:59:30 +00:00

(svn r2084) Set the name for drive items

This commit is contained in:
tron
2005-03-27 10:35:01 +00:00
parent e01338fcf5
commit aba225c88d
2 changed files with 5 additions and 3 deletions

6
os2.c
View File

@@ -199,6 +199,7 @@ FiosItem *FiosGetSavegameList(int *num, int mode)
{
fios = FiosAlloc();
fios->type = FIOS_TYPE_DRIVE;
sprintf(fios->name, "%c:", 'A' + disk - 1);
sprintf(fios->title, "%c:", 'A' + disk - 1);
}
}
@@ -316,9 +317,8 @@ FiosItem *FiosGetScenarioList(int *num, int mode)
{
fios = FiosAlloc();
fios->type = FIOS_TYPE_DRIVE;
fios->title[0] = disk + 'A'-1;
fios->title[1] = ':';
fios->title[2] = 0;
sprintf(fios->name, "%c:", 'A' + disk - 1);
sprintf(fios->title, "%c:", 'A' + disk - 1);
}
}