- fixed compile errors.

This commit is contained in:
Christoph Oelckers 2019-12-11 18:40:42 +01:00
parent 3f524d7026
commit 95625567e0
7 changed files with 10 additions and 10 deletions

View file

@ -172,8 +172,7 @@ void G_OpenDemoWrite(void)
if (g_demo_filePtr == NULL)
return;
i=sv_saveandmakesnapshot(*g_demo_filePtr, nullptr, -1, demorec_diffs_cvar, demorec_diffcompress_cvar,
(demorec_seeds_cvar<<1));
i=sv_saveandmakesnapshot(*g_demo_filePtr, nullptr, -1);
if (i)
{
delete g_demo_filePtr;

View file

@ -79,6 +79,8 @@ int32_t g_quitDeadline = 0;
int32_t g_cameraDistance = 0, g_cameraClock = 0;
static int32_t g_quickExit;
char boardfilename[BMAX_PATH];
int32_t voting = -1;
int32_t vote_map = -1, vote_episode = -1;

View file

@ -567,7 +567,7 @@ bool G_SavePlayer(FSaveGameNode *sv)
portableBackupSave(sv->Filename, sv->SaveTitle, ud.last_stateless_volume, ud.last_stateless_level);
// SAVE!
sv_saveandmakesnapshot(fw, sv->SaveTitle, 0, 0, 0, 0);
sv_saveandmakesnapshot(fw, sv->SaveTitle, 0);
fw.Close();
@ -1368,7 +1368,7 @@ static void SV_AllocSnap(int32_t allocinit)
}
// make snapshot only if spot < 0 (demo)
int32_t sv_saveandmakesnapshot(FileWriter &fil, char const *name, int8_t spot, int8_t recdiffsp)
int32_t sv_saveandmakesnapshot(FileWriter &fil, char const *name, int8_t spot)
{
savehead_t h;

View file

@ -68,7 +68,7 @@ int32_t sv_readdiff(FileReader& fil);
uint32_t sv_writediff(FileWriter *fil);
int32_t sv_loadheader(FileReader &fil, int32_t spot, savehead_t *h);
int32_t sv_loadsnapshot(FileReader &fil, int32_t spot, savehead_t *h);
int32_t sv_saveandmakesnapshot(FileWriter &fil, char const *name, int8_t spot, int8_t recdiffsp);
int32_t sv_saveandmakesnapshot(FileWriter &fil, char const *name, int8_t spot);
void sv_freemem();
int32_t G_LoadSaveHeaderNew(char const *fn, savehead_t *saveh);
void ReadSaveGameHeaders(void);

View file

@ -172,8 +172,7 @@ void G_OpenDemoWrite(void)
if (g_demo_filePtr == NULL)
return;
i=sv_saveandmakesnapshot(*g_demo_filePtr, nullptr, -1, demorec_diffs_cvar, demorec_diffcompress_cvar,
(demorec_seeds_cvar<<1));
i=sv_saveandmakesnapshot(*g_demo_filePtr, nullptr, -1, (demorec_seeds_cvar<<1));
if (i)
{
delete g_demo_filePtr;

View file

@ -313,7 +313,7 @@ bool G_SavePlayer(FSaveGameNode *sv)
// SAVE!
sv_saveandmakesnapshot(fw, sv->SaveTitle, 0, 0, 0, 0);
sv_saveandmakesnapshot(fw, sv->SaveTitle, 0, 0);
fw.Close();
@ -1073,7 +1073,7 @@ static void SV_AllocSnap(int32_t allocinit)
}
// make snapshot only if spot < 0 (demo)
int32_t sv_saveandmakesnapshot(FileWriter &fil, char const *name, int8_t spot, int8_t recdiffsp, bool isAutoSave)
int32_t sv_saveandmakesnapshot(FileWriter &fil, char const *name, int8_t spot, bool isAutoSave)
{
savehead_t h;

View file

@ -59,7 +59,7 @@ int32_t sv_readdiff(FileReader& fil);
uint32_t sv_writediff(FileWriter *fil);
int32_t sv_loadheader(FileReader &fil, int32_t spot, savehead_t *h);
int32_t sv_loadsnapshot(FileReader &fil, int32_t spot, savehead_t *h);
int32_t sv_saveandmakesnapshot(FileWriter &fil, char const *name, int8_t spot, int8_t recdiffsp, bool isAutoSave = false);
int32_t sv_saveandmakesnapshot(FileWriter &fil, char const *name, int8_t spot, bool isAutoSave = false);
void sv_freemem();
int32_t G_LoadSaveHeaderNew(char const *fn, savehead_t *saveh);
void ReadSaveGameHeaders(void);