Fixed a bug which was causing a Q2 game error when failing to open the level cache for writing.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@737 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2005-01-07 02:31:38 +00:00
parent 933de315ea
commit e4213157a9
1 changed files with 4 additions and 0 deletions

View File

@ -684,6 +684,10 @@ void SV_SaveLevelCache(qboolean dontharmgame)
#ifdef Q2SERVER
if (!svprogfuncs)
{
char path[256];
strcpy(path, name);
path[COM_SkipPath(name)-name] = '\0';
Sys_mkdir(path);
ge->WriteLevel(name);
return;
}