diff options
author | tron <tron@openttd.org> | 2005-03-27 10:35:01 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-03-27 10:35:01 +0000 |
commit | 79530aa7fe26c673dc7c7a0ea757d1e24629670a (patch) | |
tree | 5189a328ed1fa26837def0f6ff64fab6ee20180e /os2.c | |
parent | 56ffd096daee0b345375496a2e7f3a36e747f532 (diff) | |
download | openttd-79530aa7fe26c673dc7c7a0ea757d1e24629670a.tar.xz |
(svn r2084) Set the name for drive items
Diffstat (limited to 'os2.c')
-rw-r--r-- | os2.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); } } |