From 21ec471851d2c9d29b8b5059ef45902e37baa28c Mon Sep 17 00:00:00 2001 From: Adam Borowski Date: Wed, 25 Nov 2009 00:16:50 +0100 Subject: Remove a save compat hack for major tag 6 (we're in tag 8 already). --- crawl-ref/source/files.cc | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'crawl-ref/source/files.cc') diff --git a/crawl-ref/source/files.cc b/crawl-ref/source/files.cc index 605284cde0..ce60021285 100644 --- a/crawl-ref/source/files.cc +++ b/crawl-ref/source/files.cc @@ -2090,9 +2090,6 @@ bool apply_to_all_dungeons(bool (*applicator)()) return (success); } -// XXX: Minor version renumbering hack. -bool _minor_renumbering_correction = false; - static bool _get_and_validate_version(FILE *restoreFile, char &major, char &minor, std::string* reason) { @@ -2127,21 +2124,6 @@ static bool _get_and_validate_version(FILE *restoreFile, char &major, return (false); } - // XXX: Temporary hack to avoid breaking savefile compatibility because - // of simply renumbering the minor-versions. Should be removed before - // 0.6 is released. 16 is the minor version which was introduced when - // the major version was bumped from 5 to 6. - COMPILE_CHECK(TAG_MINOR_VERSION < 16, c1); - if (minor >= 16) - { - mprf(MSGCH_WARN, - "Savefile minor version being changed from %d to %d " - "because of renumbering of minor versions after removing " - "0.5 minor versions.", minor, minor - 16); - minor -= 16; - _minor_renumbering_correction = true; - } - if (minor > TAG_MINOR_VERSION) { *reason = make_stringf("Minor version mismatch: %d (want <= %d).", -- cgit v1.2.3-54-g00ecf