summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells3.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-11-07 20:56:57 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-11-07 20:56:57 +0000
commit61aa2965b3dbd9f20ea7cedcb85d143ccf5c4e7d (patch)
treeeb4e12a6c13caec0594e7618a386c8e416a80a92 /crawl-ref/source/spells3.cc
parent0f8343ac425faa15cc6bb912c6282d0fe97d46fd (diff)
downloadcrawl-ref-61aa2965b3dbd9f20ea7cedcb85d143ccf5c4e7d.tar.gz
crawl-ref-61aa2965b3dbd9f20ea7cedcb85d143ccf5c4e7d.zip
Consolidate the routines to remove the player's condensation shield into
one function. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7403 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spells3.cc')
-rw-r--r--crawl-ref/source/spells3.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/crawl-ref/source/spells3.cc b/crawl-ref/source/spells3.cc
index af2330a23a..01fa548890 100644
--- a/crawl-ref/source/spells3.cc
+++ b/crawl-ref/source/spells3.cc
@@ -42,6 +42,7 @@
#include "randart.h"
#include "religion.h"
#include "spells1.h"
+#include "spells4.h"
#include "spl-cast.h"
#include "spl-util.h"
#include "stash.h"
@@ -1245,10 +1246,7 @@ static bool _teleport_player( bool allow_control, bool new_abyss_area )
StashTrack.update_stash();
if (you.duration[DUR_CONDENSATION_SHIELD] > 0)
- {
- you.duration[DUR_CONDENSATION_SHIELD] = 0;
- you.redraw_armour_class = true;
- }
+ remove_condensation_shield();
if (you.level_type == LEVEL_ABYSS)
{