mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 10:40:46 +00:00
Fix for the autosave
git-svn-id: https://svn.eduke32.com/eduke32@756 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
fa405211ed
commit
2dbbf9c505
3 changed files with 6 additions and 4 deletions
|
@ -48,7 +48,7 @@ extern int ydim16, xdimgame, ydimgame, bppgame, xdim2d, ydim2d, forcesetup;
|
|||
extern char unrealedlook, quickmapcycling;
|
||||
extern int pk_turnaccel,pk_turndecel,pk_uedaccel;
|
||||
extern int revertCTRL,scrollamount;
|
||||
extern unsigned char autosave;
|
||||
extern int autosave;
|
||||
|
||||
|
||||
extern int ExtInit(void);
|
||||
|
|
|
@ -213,7 +213,8 @@ int loadsetup(const char *fn)
|
|||
|
||||
if (readconfig(fp, "turndecel", val, VL) > 0) pk_turndecel = Batoi(val);
|
||||
|
||||
if (readconfig(fp, "autosave", val, VL) > 0) autosave = Batoi(val);
|
||||
if (readconfig(fp, "autosave", val, VL) > 0) autosave = Batoi(val)*60;
|
||||
if (readconfig(fp, "autosavesec", val, VL) > 0) autosave = Batoi(val);
|
||||
|
||||
for (i=0;i<256;i++)remap[i]=i;
|
||||
remapinit=1;
|
||||
|
@ -343,7 +344,7 @@ int writesetup(const char *fn)
|
|||
"turndecel = %d\n"
|
||||
"\n"
|
||||
"; Autosave map interval (seconds)\n"
|
||||
"autosave = %d\n"
|
||||
"autosavesec = %d\n"
|
||||
"\n"
|
||||
#if 1
|
||||
"; Key Settings\n"
|
||||
|
|
|
@ -93,7 +93,8 @@ short cursprite;
|
|||
int mousxplc, mousyplc, ppointhighlight;
|
||||
int counter=0;
|
||||
unsigned char nosprites=0,purpleon=0,skill=4;
|
||||
unsigned char framerateon=1,shadepreview=0,autosave=3,sidemode=0;
|
||||
unsigned char framerateon=1,shadepreview=0,sidemode=0;
|
||||
int autosave=180;
|
||||
extern int vel, svel, hvel, angvel;
|
||||
int xvel, yvel, timoff;
|
||||
|
||||
|
|
Loading…
Reference in a new issue