mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 14:42:13 +00:00
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:
parent
933de315ea
commit
e4213157a9
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue