fix a nasty dir creation bug. there's probably a few more such spots :/

This commit is contained in:
Bill Currie 2000-11-08 03:13:38 +00:00
parent 26c6b9618f
commit 631d5f470c
1 changed files with 1 additions and 4 deletions

View File

@ -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");
}