From 631d5f470c86b3660cd5ae1f5d4a815466e8da01 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Wed, 8 Nov 2000 03:13:38 +0000 Subject: [PATCH] fix a nasty dir creation bug. there's probably a few more such spots :/ --- source/gl_mesh.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/source/gl_mesh.c b/source/gl_mesh.c index 67a22f8..218a691 100644 --- a/source/gl_mesh.c +++ b/source/gl_mesh.c @@ -355,10 +355,7 @@ void GL_MakeAliasModelDisplayLists (model_t *m, aliashdr_t *hdr) snprintf (fullpath, sizeof(fullpath), "%s/%s", com_gamedir, cache); f = Qopen (fullpath, "wb"); if (!f) { - char gldir[MAX_OSPATH]; - - snprintf (gldir, sizeof(gldir), "%s/glquake", com_gamedir); - Sys_mkdir (gldir); + COM_CreatePath (fullpath); f = Qopen (fullpath, "wb"); }