summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/env.h
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2010-06-05 19:25:33 +0200
committerRobert Vollmert <rvollmert@gmx.net>2010-06-05 21:01:10 +0200
commit3637a2e62fe51fbfa05f99e40ac75bce036c78b4 (patch)
tree73b62b9458e28fc0731c105bba845d7804dd98f0 /crawl-ref/source/env.h
parent29a3c6724d9cd979fe50e8b8230e3b6d48d93177 (diff)
downloadcrawl-ref-3637a2e62fe51fbfa05f99e40ac75bce036c78b4.tar.gz
crawl-ref-3637a2e62fe51fbfa05f99e40ac75bce036c78b4.zip
Save old player position (env.old_player_pos).
Diffstat (limited to 'crawl-ref/source/env.h')
-rw-r--r--crawl-ref/source/env.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/crawl-ref/source/env.h b/crawl-ref/source/env.h
index 47ddce5b23..4e118bc24a 100644
--- a/crawl-ref/source/env.h
+++ b/crawl-ref/source/env.h
@@ -61,7 +61,12 @@ struct crawl_environment
// 5 turns). Set to 0 to stop random generation.
int spawn_random_rate;
- long elapsed_time; // used during level load
+ // Time when level was saved (hence we write out you.elapsed_time
+ // (but load it back to env.elapsed_tiem); used during level load
+ long elapsed_time;
+
+ // Which point did the player leave the level from?
+ coord_def old_player_pos;
// Number of turns the player has spent on this level.
int turns_on_level;