compatibility checks fix for TIMED_DELAY

makedefs has been listing TIMED_DELAY as one of the options which
affects save file contents even though that hasn't been the case for
a long time.  Unfortunately, simply fixing that by itself would break
save file compatibility for anyone who has been building with it set.
This workaround prevents the fix from doing that.  And now folks can
rebuild after toggling TIMED_DELAY without unnecessarily invalidating
save and bones files.
This commit is contained in:
nethack.rankin
2002-08-15 02:48:34 +00:00
parent c9a52fa6bd
commit fab39a2007
3 changed files with 26 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
/* SCCS Id: @(#)version.c 3.4 1999/12/01 */
/* SCCS Id: @(#)version.c 3.4 2002/08/14 */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/* NetHack may be freely redistributed. See license for details. */
@@ -64,7 +64,13 @@ boolean complain;
if (complain)
pline("Version mismatch for file \"%s\".", filename);
return FALSE;
} else if (version_data->feature_set != VERSION_FEATURES ||
} else if (
#ifndef IGNORED_FEATURES
version_data->feature_set != VERSION_FEATURES ||
#else
(version_data->feature_set & ~IGNORED_FEATURES) !=
(VERSION_FEATURES & ~IGNORED_FEATURES) ||
#endif
version_data->entity_count != VERSION_SANITY1 ||
version_data->struct_sizes != VERSION_SANITY2) {
if (complain)