summaryrefslogtreecommitdiff
path: root/games/adventure/save.c
diff options
context:
space:
mode:
Diffstat (limited to 'games/adventure/save.c')
-rw-r--r--games/adventure/save.c128
1 files changed, 64 insertions, 64 deletions
diff --git a/games/adventure/save.c b/games/adventure/save.c
index 77f36f09c3d..f4bbb5c2660 100644
--- a/games/adventure/save.c
+++ b/games/adventure/save.c
@@ -59,66 +59,66 @@ struct savestruct
struct savestruct save_array[] =
{
- &abbnum, sizeof(abbnum),
- &attack, sizeof(attack),
- &blklin, sizeof(blklin),
- &bonus, sizeof(bonus),
- &chloc, sizeof(chloc),
- &chloc2, sizeof(chloc2),
- &clock1, sizeof(clock1),
- &clock2, sizeof(clock2),
- &closed, sizeof(closed),
- &closng, sizeof(closng),
- &daltlc, sizeof(daltlc),
- &demo, sizeof(demo),
- &detail, sizeof(detail),
- &dflag, sizeof(dflag),
- &dkill, sizeof(dkill),
- &dtotal, sizeof(dtotal),
- &foobar, sizeof(foobar),
- &gaveup, sizeof(gaveup),
- &holdng, sizeof(holdng),
- &iwest, sizeof(iwest),
- &k, sizeof(k),
- &k2, sizeof(k2),
- &knfloc, sizeof(knfloc),
- &kq, sizeof(kq),
- &latncy, sizeof(latncy),
- &limit, sizeof(limit),
- &lmwarn, sizeof(lmwarn),
- &loc, sizeof(loc),
- &maxdie, sizeof(maxdie),
- &mxscor, sizeof(mxscor),
- &newloc, sizeof(newloc),
- &numdie, sizeof(numdie),
- &obj, sizeof(obj),
- &oldlc2, sizeof(oldlc2),
- &oldloc, sizeof(oldloc),
- &panic, sizeof(panic),
- &saved, sizeof(saved),
- &savet, sizeof(savet),
- &scorng, sizeof(scorng),
- &spk, sizeof(spk),
- &stick, sizeof(stick),
- &tally, sizeof(tally),
- &tally2, sizeof(tally2),
- &tkk, sizeof(tkk),
- &turns, sizeof(turns),
- &verb, sizeof(verb),
- &wd1, sizeof(wd1),
- &wd2, sizeof(wd2),
- &wzdark, sizeof(wzdark),
- &yea, sizeof(yea),
- atloc, sizeof(atloc),
- dloc, sizeof(dloc),
- dseen, sizeof(dseen),
- fixed, sizeof(fixed),
- hinted, sizeof(hinted),
- linkx, sizeof(linkx),
- odloc, sizeof(odloc),
- place, sizeof(place),
- prop, sizeof(prop),
- tk, sizeof(tk),
+ &abbnum, sizeof(abbnum),
+ &attack, sizeof(attack),
+ &blklin, sizeof(blklin),
+ &bonus, sizeof(bonus),
+ &chloc, sizeof(chloc),
+ &chloc2, sizeof(chloc2),
+ &clock1, sizeof(clock1),
+ &clock2, sizeof(clock2),
+ &closed, sizeof(closed),
+ &closng, sizeof(closng),
+ &daltlc, sizeof(daltlc),
+ &demo, sizeof(demo),
+ &detail, sizeof(detail),
+ &dflag, sizeof(dflag),
+ &dkill, sizeof(dkill),
+ &dtotal, sizeof(dtotal),
+ &foobar, sizeof(foobar),
+ &gaveup, sizeof(gaveup),
+ &holdng, sizeof(holdng),
+ &iwest, sizeof(iwest),
+ &k, sizeof(k),
+ &k2, sizeof(k2),
+ &knfloc, sizeof(knfloc),
+ &kq, sizeof(kq),
+ &latncy, sizeof(latncy),
+ &limit, sizeof(limit),
+ &lmwarn, sizeof(lmwarn),
+ &loc, sizeof(loc),
+ &maxdie, sizeof(maxdie),
+ &mxscor, sizeof(mxscor),
+ &newloc, sizeof(newloc),
+ &numdie, sizeof(numdie),
+ &obj, sizeof(obj),
+ &oldlc2, sizeof(oldlc2),
+ &oldloc, sizeof(oldloc),
+ &panic, sizeof(panic),
+ &saved, sizeof(saved),
+ &savet, sizeof(savet),
+ &scorng, sizeof(scorng),
+ &spk, sizeof(spk),
+ &stick, sizeof(stick),
+ &tally, sizeof(tally),
+ &tally2, sizeof(tally2),
+ &tkk, sizeof(tkk),
+ &turns, sizeof(turns),
+ &verb, sizeof(verb),
+ &wd1, sizeof(wd1),
+ &wd2, sizeof(wd2),
+ &wzdark, sizeof(wzdark),
+ &yea, sizeof(yea),
+ atloc, sizeof(atloc),
+ dloc, sizeof(dloc),
+ dseen, sizeof(dseen),
+ fixed, sizeof(fixed),
+ hinted, sizeof(hinted),
+ linkx, sizeof(linkx),
+ odloc, sizeof(odloc),
+ place, sizeof(place),
+ prop, sizeof(prop),
+ tk, sizeof(tk),
NULL, 0
};
@@ -179,7 +179,7 @@ char *infile;
}
setegid(getgid());
- fread(&sum, sizeof(sum), 1, in); /* Get the seed */
+ fread(&sum, sizeof(sum), 1, in); /* Get the seed */
srandom((int) sum);
for (p = save_array; p->address != NULL; p++)
{
@@ -189,11 +189,11 @@ char *infile;
}
fclose(in);
- crc_start(); /* See if she cheated */
+ crc_start(); /* See if she cheated */
for (p = save_array; p->address != NULL; p++)
cksum = crc(p->address, p->width);
- if (sum != cksum) /* Tsk tsk */
- return 2; /* Altered the file */
+ if (sum != cksum) /* Tsk tsk */
+ return 2; /* Altered the file */
/* We successfully restored, so this really was a save file */
/* Get rid of the file, but don't bother checking that we did */
return 0;