SEDUCE
0 or 1 to disable or enable, respectively, the SEDUCE option (see the source
for details on this function).
+.lp
+CHECK_SAVE_UID
+0 or 1 to disable or enable, respectively, the UID checking for savefiles.
.pg
The following options affect the score file:
.pg
\item[\ib{SEDUCE}]
0 or 1 to disable or enable, respectively, the SEDUCE option (see the source)
for details on this function.
+%.lp
+\item[\ib{CHECK\_SAVE\_UID}]
+0 or 1 to disable or enable, respectively, the UID checking for savefiles.
\elist
%.pg
# endif
#endif
int seduce;
+ int check_save_uid; /* restoring savefile checks UID? */
};
extern struct sysopt sysopt;
} else if (src == SET_IN_SYS && match_varname(buf, "RECOVER", 7)) {
if (sysopt.recover) free(sysopt.recover);
sysopt.recover = dupstr(bufp);
+ } else if (src == SET_IN_SYS && match_varname(buf, "CHECK_SAVE_UID", 14)) {
+ n = atoi(bufp);
+ sysopt.check_save_uid = n;
} else if (match_varname(buf, "SEDUCE", 6)) {
n = !!atoi(bufp); /* XXX this could be tighter */
/* allow anyone to turn it off, but only sysconf to turn it on*/
else otmp->spe = fruitadd(oldf->fname, (struct fruit *)0);
}
+
+#ifdef SYSCF
+#define SYSOPT_CHECK_SAVE_UID sysopt.check_save_uid
+#else
+#define SYSOPT_CHECK_SAVE_UID TRUE
+#endif
+
STATIC_OVL
boolean
restgamestate(fd, stuckid, steedid)
unsigned long uid;
mread(fd, (genericptr_t) &uid, sizeof uid);
- if (uid != (unsigned long)getuid()) { /* strange ... */
+ if (SYSOPT_CHECK_SAVE_UID && uid != (unsigned long)getuid()) { /* strange ... */
/* for wizard mode, issue a reminder; for others, treat it
as an attempt to cheat and refuse to restore this file */
pline("Saved game was not yours.");
# endif
#endif
+ sysopt.check_save_uid = 1;
sysopt.seduce = 1; /* if it's compiled in, default to on */
sysopt_seduce_set(sysopt.seduce);
}
# Uncomment the next line to disable the SEDUCE option.
#SEDUCE=0
+# Uncomment to disable savefile UID checking.
+#CHECK_SAVE_UID=0
+
# Record (high score) file options.
# CAUTION: changing these after people have started playing games can
# lead to lost high scores!