mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
git-svn-id: https://svn.eduke32.com/eduke32@1840 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
ebfb0b1ad6
commit
3eb9d8fb5c
1 changed files with 9 additions and 4 deletions
|
@ -163,16 +163,21 @@ void G_OpenDemoWrite(void)
|
|||
}
|
||||
}
|
||||
|
||||
while (1)
|
||||
do
|
||||
{
|
||||
if (demonum == 10000) return;
|
||||
Bsprintf(d, "edemo%d.edm", demonum++);
|
||||
g_demo_filePtr = fopen(d, "rb");
|
||||
|
||||
if (g_modDir[0] != '/')
|
||||
Bsprintf(d,"%s/edemo%d.edm",g_modDir, demonum++);
|
||||
else Bsprintf(d, "edemo%d.edm", demonum++);
|
||||
|
||||
g_demo_filePtr = Bfopen(d, "rb");
|
||||
if (g_demo_filePtr == NULL) break;
|
||||
Bfclose(g_demo_filePtr);
|
||||
}
|
||||
while (1);
|
||||
|
||||
if ((g_demo_filePtr = fopen(d,"wb")) == NULL) return;
|
||||
if ((g_demo_filePtr = Bfopen(d,"wb")) == NULL) return;
|
||||
|
||||
i=sv_saveandmakesnapshot(g_demo_filePtr, demorec_diffs_cvar, demorec_diffcompress_cvar,
|
||||
demorec_synccompress_cvar|(demorec_seeds_cvar<<1));
|
||||
|
|
Loading…
Reference in a new issue