summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/misc.cc
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2007-09-16 03:39:41 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2007-09-16 03:39:41 +0000
commitdcf7801daff4c7c76e461c5ad08749394e64466b (patch)
treeec4411652736ce6267b0a1a9c07782dd4a089497 /crawl-ref/source/misc.cc
parentcf87ca267353855c40cc29c08eb40b646693e3e2 (diff)
downloadcrawl-ref-dcf7801daff4c7c76e461c5ad08749394e64466b.tar.gz
crawl-ref-dcf7801daff4c7c76e461c5ad08749394e64466b.zip
Add dump sections for branch/area details for turns and
experience/kills, with the section names being turns_by_place and kills_by_place. Also includes a "visits" dump section (included in the "misc" section") a brief description of the number of branches/levels/areas/etc you visited. Breaks savefile compatibility. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2102 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/misc.cc')
-rw-r--r--crawl-ref/source/misc.cc11
1 files changed, 5 insertions, 6 deletions
diff --git a/crawl-ref/source/misc.cc b/crawl-ref/source/misc.cc
index 4b3a6a8f4a..30f2ed3627 100644
--- a/crawl-ref/source/misc.cc
+++ b/crawl-ref/source/misc.cc
@@ -460,8 +460,8 @@ void up_stairs(dungeon_feature_type force_stair)
{
dungeon_feature_type stair_find =
force_stair? force_stair : grd[you.x_pos][you.y_pos];
- const branch_type old_where = you.where_are_you;
- const bool was_a_labyrinth = you.level_type != LEVEL_DUNGEON;
+ const branch_type old_where = you.where_are_you;
+ const level_area_type old_level_type = you.level_type;
if (stair_find == DNGN_ENTER_SHOP)
{
@@ -597,7 +597,7 @@ void up_stairs(dungeon_feature_type force_stair)
else
climb_message(stair_find, true);
- load(stair_taken, LOAD_ENTER_LEVEL, was_a_labyrinth, old_level, old_where);
+ load(stair_taken, LOAD_ENTER_LEVEL, old_level_type, old_level, old_where);
you.turn_is_over = true;
@@ -672,8 +672,7 @@ void up_stairs(dungeon_feature_type force_stair)
void down_stairs( int old_level, dungeon_feature_type force_stair )
{
int i;
- const level_area_type old_level_type = you.level_type;
- const bool was_a_labyrinth = you.level_type != LEVEL_DUNGEON;
+ const level_area_type old_level_type = you.level_type;
const dungeon_feature_type stair_find =
force_stair? force_stair : grd[you.x_pos][you.y_pos];
@@ -915,7 +914,7 @@ void down_stairs( int old_level, dungeon_feature_type force_stair )
}
const bool newlevel =
- load(stair_taken, LOAD_ENTER_LEVEL, was_a_labyrinth,
+ load(stair_taken, LOAD_ENTER_LEVEL, old_level_type,
old_level, old_where);
if (newlevel)