mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2025-02-21 11:01:12 +00:00
more f*->gz*. forgot to save this one earlier.
This commit is contained in:
parent
fe681d4427
commit
75bb541f81
1 changed files with 6 additions and 6 deletions
|
@ -295,7 +295,7 @@ void GL_MakeAliasModelDisplayLists (model_t *m, aliashdr_t *hdr)
|
||||||
int *cmds;
|
int *cmds;
|
||||||
trivertx_t *verts;
|
trivertx_t *verts;
|
||||||
char cache[MAX_QPATH], fullpath[MAX_OSPATH];
|
char cache[MAX_QPATH], fullpath[MAX_OSPATH];
|
||||||
FILE *f;
|
gzFile *f;
|
||||||
|
|
||||||
aliasmodel = m;
|
aliasmodel = m;
|
||||||
paliashdr = hdr; // (aliashdr_t *)Mod_Extradata (m);
|
paliashdr = hdr; // (aliashdr_t *)Mod_Extradata (m);
|
||||||
|
@ -310,11 +310,11 @@ void GL_MakeAliasModelDisplayLists (model_t *m, aliashdr_t *hdr)
|
||||||
COM_FOpenFile (cache, &f);
|
COM_FOpenFile (cache, &f);
|
||||||
if (f)
|
if (f)
|
||||||
{
|
{
|
||||||
fread (&numcommands, 4, 1, f);
|
gzread (f, &numcommands, 4);
|
||||||
fread (&numorder, 4, 1, f);
|
gzread (f, &numorder, 4);
|
||||||
fread (commands, numcommands * sizeof(commands[0]), 1, f);
|
gzread (f, commands, numcommands * sizeof(commands[0]));
|
||||||
fread (vertexorder, numorder * sizeof(vertexorder[0]), 1, f);
|
gzread (f, vertexorder, numorder * sizeof(vertexorder[0]));
|
||||||
fclose (f);
|
gzclose (f);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue