correct a misleading error and some missed foundname sets

This commit is contained in:
Bill Currie 2002-01-03 22:12:23 +00:00
parent c0851f716e
commit f2cbe232de

View file

@ -282,6 +282,7 @@ int _FS_FOpenFile (char *filename, QFile **file, char *foundname, int zip)
#endif #endif
if (*file) if (*file)
{ {
strncpy (foundname, netpath, MAX_OSPATH);
Com_DPrintf ("link file: %s\n",netpath); Com_DPrintf ("link file: %s\n",netpath);
return size; return size;
} }
@ -314,7 +315,7 @@ int _FS_FOpenFile (char *filename, QFile **file, char *foundname, int zip)
pak->files[i].filepos, pak->files[i].filepos,
pak->files[i].filelen, zip, &size); pak->files[i].filelen, zip, &size);
if (!*file) if (!*file)
Com_Error (ERR_FATAL, "Couldn't reopen %s", pak->filename); Com_Error (ERR_FATAL, "Couldn't open %s", foundname);
return size; return size;
} }
} }
@ -334,6 +335,7 @@ int _FS_FOpenFile (char *filename, QFile **file, char *foundname, int zip)
if (!*file) if (!*file)
continue; continue;
strncpy (foundname, netpath, MAX_OSPATH);
Com_DPrintf ("FindFile: %s\n",netpath); Com_DPrintf ("FindFile: %s\n",netpath);
return size; return size;