diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-09-14 13:07:26 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-09-14 13:07:26 +0000 |
commit | 89e659fb4abacdcf2b16125993ab10c5eb954bad (patch) | |
tree | 28b1586924678a300d78b2e5ba03ebb6ddf741c8 /crawl-ref/source/player.cc | |
parent | 3e17829c6b5d11b23fda59f0dd38b8aa88638f39 (diff) | |
download | crawl-ref-89e659fb4abacdcf2b16125993ab10c5eb954bad.tar.gz crawl-ref-89e659fb4abacdcf2b16125993ab10c5eb954bad.zip |
Really fix bats being able to open/close doors.
Likewise disallow closing doors while held in a net.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6922 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r-- | crawl-ref/source/player.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index ab1e3d668b..7dbdf0217e 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -685,9 +685,9 @@ bool you_tran_can_wear(int eq, bool check_mutation) if (transform == TRAN_STATUE) { - if (eq == EQ_BODY_ARMOUR || eq == EQ_GLOVES || eq == EQ_SHIELD) - return (false); - return (true); + if (eq == EQ_WEAPON || eq == EQ_CLOAK || eq == EQ_HELMET) + return (true); + return (false); } return (true); |