summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-05-31 21:06:01 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-05-31 21:06:01 +0000
commitbca15bacae7209a2b75eb82aaf2578a1ce547f57 (patch)
treed4ef2a744ae3a259dd9f83c2ff521c406122c46b /crawl-ref/source/player.cc
parent87c78aab3995cccfdcc41de3ac466b0fa2d85657 (diff)
downloadcrawl-ref-bca15bacae7209a2b75eb82aaf2578a1ce547f57.tar.gz
crawl-ref-bca15bacae7209a2b75eb82aaf2578a1ce547f57.zip
Commit r9867 to trunk.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9868 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r--crawl-ref/source/player.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index d986ff62be..1c1fae0b70 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -1558,10 +1558,10 @@ bool player_res_asphyx()
bool player_control_teleport(bool calc_unid, bool temp, bool items)
{
- return ( (you.duration[DUR_CONTROL_TELEPORT] && temp)
- || (player_equip(EQ_RINGS, RING_TELEPORT_CONTROL, calc_unid)
- && items)
- || player_mutation_level(MUT_TELEPORT_CONTROL) );
+ return ((temp && you.duration[DUR_CONTROL_TELEPORT])
+ || (items
+ && player_equip(EQ_RINGS, RING_TELEPORT_CONTROL, calc_unid))
+ || player_mutation_level(MUT_TELEPORT_CONTROL));
}
int player_res_torment(bool)