Remove the stack loading from QFS_LoadFile.

This commit is contained in:
Bill Currie 2014-01-23 09:01:55 +09:00
parent a561477274
commit 83c47aacef

View file

@ -1103,8 +1103,6 @@ QFS_FOpenFile (const char *filename, QFile **gzfile)
}
cache_user_t *loadcache;
byte *loadbuf;
int loadsize;
/*
QFS_LoadFile
@ -1136,12 +1134,7 @@ QFS_LoadFile (const char *path, int usehunk)
buf = calloc (1, len + 1);
else if (usehunk == 3)
buf = Cache_Alloc (loadcache, len + 1, base);
else if (usehunk == 4) {
if (len + 1 > loadsize)
buf = Hunk_TempAlloc (len + 1);
else
buf = loadbuf;
} else
else
Sys_Error ("QFS_LoadFile: bad usehunk");
if (!buf)