From 314d93a98176f4eea464be2349039a4fd57de764 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Tue, 14 Jul 2009 22:41:26 +0000 Subject: Fix closing/opening doors not prompting if there are several adjacent doors. Also, confusion is now handled more consistently. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10215 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/player.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/player.cc') diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index 1d13865abd..a3af5c9ebb 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -435,8 +435,9 @@ bool player_in_bat_form() bool player_can_open_doors() { - // Bats can't close/open doors. - return !player_in_bat_form(); + // Bats and pigs can't open/close doors. + return (you.attribute[ATTR_TRANSFORMATION] != TRAN_BAT + && you.attribute[ATTR_TRANSFORMATION] != TRAN_PIG); } bool player_under_penance(void) -- cgit v1.2.3-54-g00ecf