summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/files.h
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2008-11-25 00:01:38 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2008-11-25 00:01:38 +0000
commit97f93f7d2dd30fee884ee4eeb8a16dcb51cf4a7c (patch)
treeef959b41c9373a02d6424717be5cbcbd1c72782f /crawl-ref/source/files.h
parentbe49ad27a08b4d5a5e347e6d8a2e6852f81c4a8b (diff)
downloadcrawl-ref-97f93f7d2dd30fee884ee4eeb8a16dcb51cf4a7c.tar.gz
crawl-ref-97f93f7d2dd30fee884ee4eeb8a16dcb51cf4a7c.zip
Allow ziggurats placed in Pandemonium to return to the same Pan level when the player leaves the ziggurat. Breaks saves.
Cleaned up up_stairs() and down_stairs() to remove spurious depth changes when changing you.level_type - depth (you.your_level) now changes only for stairs with both ends in LEVEL_DUNGEON. All levels are now saved on exit, including non LEVEL_DUNGEON levels. Re-entering non-dungeon levels from down_stairs will still delete the old level. Re-entering non-dungeon levels from up_stairs (i.e. returning to a non-dungeon level from some other place, like a ziggurat) will reload the old level. Fixed bogus marker trashing when player attempts to use a Zot entrance with insufficient runes. Delete .msg files when game ends. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7598 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/files.h')
-rw-r--r--crawl-ref/source/files.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/files.h b/crawl-ref/source/files.h
index f2e8c006a1..2a60fbeb77 100644
--- a/crawl-ref/source/files.h
+++ b/crawl-ref/source/files.h
@@ -15,6 +15,7 @@
#include <stdio.h>
#include <string>
#include <vector>
+#include <set>
enum load_mode_type
{
@@ -28,7 +29,8 @@ enum load_mode_type
#define MAX_LEVELS 50
// referenced in files - newgame - ouch:
-extern FixedArray<bool, MAX_LEVELS, NUM_BRANCHES> tmp_file_pairs;
+typedef std::set<level_id> level_id_set;
+extern level_id_set Generated_Levels;
bool file_exists(const std::string &name);
bool dir_exists(const std::string &dir);