mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-22 18:31:27 +00:00
Fix a thinko in the save game menu
I thought I had to prepend the gamedir when using QFS_FOpenFile (or QFS_OpenFile in rua). Nope, it's gamedir based
This commit is contained in:
parent
4cec3bbff6
commit
6fccfdf1b9
1 changed files with 3 additions and 2 deletions
|
@ -142,12 +142,13 @@ void (int quick) scan_saves =
|
|||
max = MAX_QUICK;
|
||||
basename = "quick";
|
||||
}
|
||||
string gamedir = QFS_GetDirectory();
|
||||
for (i = 0; i < max; i++) {
|
||||
if (!filenames[i])
|
||||
filenames[i] = str_new ();
|
||||
loadable[i] = 0;
|
||||
f = QFS_OpenFile (sprintf ("%s/%s%i.sav", gamedir, basename, i));
|
||||
string path = sprintf ("%s%i.sav", basename, i);
|
||||
dprint(path + "\n");
|
||||
f = QFS_OpenFile (path);
|
||||
if (!f) {
|
||||
str_copy (filenames[i], "--- UNUSED SLOT ---");
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue