summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/files.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-01 17:37:56 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-01 17:37:56 +0000
commit11c08abe629362a45f0276212dfcd5ca2069b9b8 (patch)
tree94d78cb7d876adab5c7a46ee540694dfdb78c2d7 /crawl-ref/source/files.cc
parent127bc45cca50bbfc9112612b54969c7b889145cb (diff)
downloadcrawl-ref-11c08abe629362a45f0276212dfcd5ca2069b9b8.tar.gz
crawl-ref-11c08abe629362a45f0276212dfcd5ca2069b9b8.zip
The royal jelly's death triggers wall change even if it is off-level. Also fixed being able to lose the royal jelly when banishing it and crash when killing the royal jelly in the Abyss.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4030 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/files.cc')
-rw-r--r--crawl-ref/source/files.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/files.cc b/crawl-ref/source/files.cc
index c60c60b706..c98cf0b027 100644
--- a/crawl-ref/source/files.cc
+++ b/crawl-ref/source/files.cc
@@ -1510,6 +1510,9 @@ bool apply_to_level(const level_id &level, bool preserve_current,
const level_id original = level_id::current();
if (level != original)
{
+ if (preserve_current)
+ save_level(you.your_level, you.level_type, you.where_are_you);
+
you.where_are_you = level.branch;
you.your_level = level.absdepth();
you.level_type = level.level_type;