Fix for the autosave

git-svn-id: https://svn.eduke32.com/eduke32@756 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hnt_ts 2008-06-01 10:20:39 +00:00
parent fa405211ed
commit 2dbbf9c505
3 changed files with 6 additions and 4 deletions

View file

@ -48,7 +48,7 @@ extern int ydim16, xdimgame, ydimgame, bppgame, xdim2d, ydim2d, forcesetup;
extern char unrealedlook, quickmapcycling; extern char unrealedlook, quickmapcycling;
extern int pk_turnaccel,pk_turndecel,pk_uedaccel; extern int pk_turnaccel,pk_turndecel,pk_uedaccel;
extern int revertCTRL,scrollamount; extern int revertCTRL,scrollamount;
extern unsigned char autosave; extern int autosave;
extern int ExtInit(void); extern int ExtInit(void);

View file

@ -213,7 +213,8 @@ int loadsetup(const char *fn)
if (readconfig(fp, "turndecel", val, VL) > 0) pk_turndecel = Batoi(val); 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; for (i=0;i<256;i++)remap[i]=i;
remapinit=1; remapinit=1;
@ -343,7 +344,7 @@ int writesetup(const char *fn)
"turndecel = %d\n" "turndecel = %d\n"
"\n" "\n"
"; Autosave map interval (seconds)\n" "; Autosave map interval (seconds)\n"
"autosave = %d\n" "autosavesec = %d\n"
"\n" "\n"
#if 1 #if 1
"; Key Settings\n" "; Key Settings\n"

View file

@ -93,7 +93,8 @@ short cursprite;
int mousxplc, mousyplc, ppointhighlight; int mousxplc, mousyplc, ppointhighlight;
int counter=0; int counter=0;
unsigned char nosprites=0,purpleon=0,skill=4; 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; extern int vel, svel, hvel, angvel;
int xvel, yvel, timoff; int xvel, yvel, timoff;