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

View file

@ -355,10 +355,7 @@ void GL_MakeAliasModelDisplayLists (model_t *m, aliashdr_t *hdr)
snprintf (fullpath, sizeof(fullpath), "%s/%s", com_gamedir, cache); snprintf (fullpath, sizeof(fullpath), "%s/%s", com_gamedir, cache);
f = Qopen (fullpath, "wb"); f = Qopen (fullpath, "wb");
if (!f) { if (!f) {
char gldir[MAX_OSPATH]; COM_CreatePath (fullpath);
snprintf (gldir, sizeof(gldir), "%s/glquake", com_gamedir);
Sys_mkdir (gldir);
f = Qopen (fullpath, "wb"); f = Qopen (fullpath, "wb");
} }