From 75bb541f81e2c2c8dd65607e324f164737b22fc3 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Thu, 3 Feb 2000 03:09:52 +0000 Subject: [PATCH] more f*->gz*. forgot to save this one earlier. --- common/gl_mesh.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/common/gl_mesh.c b/common/gl_mesh.c index 9cf8afa..b396474 100644 --- a/common/gl_mesh.c +++ b/common/gl_mesh.c @@ -295,7 +295,7 @@ void GL_MakeAliasModelDisplayLists (model_t *m, aliashdr_t *hdr) int *cmds; trivertx_t *verts; char cache[MAX_QPATH], fullpath[MAX_OSPATH]; - FILE *f; + gzFile *f; aliasmodel = 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); if (f) { - fread (&numcommands, 4, 1, f); - fread (&numorder, 4, 1, f); - fread (commands, numcommands * sizeof(commands[0]), 1, f); - fread (vertexorder, numorder * sizeof(vertexorder[0]), 1, f); - fclose (f); + gzread (f, &numcommands, 4); + gzread (f, &numorder, 4); + gzread (f, commands, numcommands * sizeof(commands[0])); + gzread (f, vertexorder, numorder * sizeof(vertexorder[0])); + gzclose (f); } else {