summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/files.h
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-05-10 16:38:57 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-05-10 16:38:57 +0000
commit90ac0755a3ded561037b612fa7adbf293887e050 (patch)
tree71bf12b204b207c8c6bc143851b040bbf9fb69c9 /crawl-ref/source/files.h
parenta4ac31b1514c2eb7066379e79bfdd5985a7ddecb (diff)
downloadcrawl-ref-90ac0755a3ded561037b612fa7adbf293887e050.tar.gz
crawl-ref-90ac0755a3ded561037b612fa7adbf293887e050.zip
Level-files are now saved with subdungeon depths rather than absolute depths.
Breaks save compatibility resoundingly. The advantage of the change is that ghosts dying in a branch will always be reloaded at the same depth in the branch. Fixed minor bug that could result in branch stairs taking you to different places on successive visits. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1446 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/files.h')
-rw-r--r--crawl-ref/source/files.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/files.h b/crawl-ref/source/files.h
index 1e480ba90e..9ac67b5093 100644
--- a/crawl-ref/source/files.h
+++ b/crawl-ref/source/files.h
@@ -32,7 +32,7 @@ std::string datafile_path(const std::string &basename,
std::string get_parent_directory(const std::string &filename);
bool check_dir(const std::string &what, std::string &dir);
-bool travel_load_map( char branch, int absdepth );
+bool travel_load_map( branch_type branch, int absdepth );
std::vector<player> find_saved_characters();
@@ -74,7 +74,7 @@ void save_ghost( bool force = false );
/* ***********************************************************************
* called from: files hiscores
* *********************************************************************** */
-std::string make_filename( const char *prefix, int level, int branch,
+std::string make_filename( const char *prefix, int level, branch_type branch,
level_area_type lt, bool isGhost );
void writeShort(FILE *file, short s);