diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-10-25 16:48:10 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-10-25 16:48:10 +0000 |
commit | 98fa05c78ca5362eac49bdcc1fd481673089f0d7 (patch) | |
tree | ecce31509b7a5a6d94073f69858f4b276c6676b8 /crawl-ref/source | |
parent | bbab57270a5c7446725d46172e8b88a5e9e15c38 (diff) | |
download | crawl-ref-98fa05c78ca5362eac49bdcc1fd481673089f0d7.tar.gz crawl-ref-98fa05c78ca5362eac49bdcc1fd481673089f0d7.zip |
Fixed labyrinth sizes for trunk.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2574 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source')
-rw-r--r-- | crawl-ref/source/defines.h | 4 | ||||
-rw-r--r-- | crawl-ref/source/dungeon.cc | 12 |
2 files changed, 9 insertions, 7 deletions
diff --git a/crawl-ref/source/defines.h b/crawl-ref/source/defines.h index d13910e61c..823f9cbca1 100644 --- a/crawl-ref/source/defines.h +++ b/crawl-ref/source/defines.h @@ -82,7 +82,9 @@ // This is the border that must be left around the map. I'm not sure why it's // necessary, beyond hysterical raisins. -#define MAPGEN_BORDER 2 +const int MAPGEN_BORDER = 2; + +const int LABYRINTH_BORDER = 12; // Now some defines about the actual play area: // Note: these boundaries are exclusive for the zone the player can move/dig, diff --git a/crawl-ref/source/dungeon.cc b/crawl-ref/source/dungeon.cc index 2b40d2d834..abeb5e4ad5 100644 --- a/crawl-ref/source/dungeon.cc +++ b/crawl-ref/source/dungeon.cc @@ -5849,8 +5849,8 @@ static void init_minivault_placement(int vault, vault_placement &place) static void labyrinth_dimension_adjust(int delta, int &ds, int &dw) { - if (delta > MAPGEN_BORDER) - delta = MAPGEN_BORDER; + if (delta > LABYRINTH_BORDER / 2) + delta = LABYRINTH_BORDER / 2; if (delta) { @@ -6040,10 +6040,10 @@ static void labyrinth_place_entry_point(const dgn_region ®ion, static void labyrinth_level(int level_number) { dgn_region lab = - dgn_region::absolute( MAPGEN_BORDER * 2, - MAPGEN_BORDER * 2, - GXM - MAPGEN_BORDER * 2 - 1, - GYM - MAPGEN_BORDER * 2 - 1 ); + dgn_region::absolute( LABYRINTH_BORDER, + LABYRINTH_BORDER, + GXM - LABYRINTH_BORDER - 1, + GYM - LABYRINTH_BORDER - 1 ); // First decide if we're going to use a Lab minivault. int vault = random_map_for_tag("minotaur", true, false); |