From 9cc4ae67d7aba85a9eee26bb6e390ecd2e30da77 Mon Sep 17 00:00:00 2001 From: pauldubois Date: Sun, 20 Apr 2008 21:58:18 +0000 Subject: A little bit of savegame code cleanup; and a small format change to make life easier (or rather, possible) for dump_savegame. Should not break saves (let me know if they do). - Fixed dump_savegame bug reading TAG_LEVEL. Handle lua map_markers (by skipping over them) -- requires format change and minor version bump. - Consolidated YOU_MINOR_VERSION, LEVEL_MINOR_VERSION, GHOST_MINOR_VERSION into a single TAG_MINOR_VERSION, because otherwise versions can't be passed into data structures being deserialized (because they may be contained in both you and ghost, for example). - Clean out old code that pretends to restore other major versions, and some duplicate code that pretends level loading and general tagged file loading are different. (Left ghosts alone because they really do do something different, slightly) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4420 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/externs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/externs.h') diff --git a/crawl-ref/source/externs.h b/crawl-ref/source/externs.h index 6ebfaff787..c157fb7744 100644 --- a/crawl-ref/source/externs.h +++ b/crawl-ref/source/externs.h @@ -1331,7 +1331,7 @@ public: void clear(); void write(writer &) const; - void read(reader &); + void read(reader &, int minorVersion); private: typedef std::multimap dgn_marker_map; -- cgit v1.2.3-54-g00ecf