From 4cac38979dea03c2323e33c854ac1092621edec0 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Sun, 17 May 2009 11:00:04 +0000 Subject: Fix 2792807: Autoexplore attempting to open doors in bat form. Fix 2792782: vaults not initialising blood potions properly git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9790 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/player.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'crawl-ref/source/player.cc') diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index 8dca1e0083..dbb5fc47e7 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -427,6 +427,12 @@ bool player_is_swimming() return (you.swimming()); } +bool player_can_open_doors() +{ + // Bats can't close/open doors. + return (you.attribute[ATTR_TRANSFORMATION] != TRAN_BAT); +} + bool player_under_penance(void) { if (you.religion != GOD_NO_GOD) -- cgit v1.2.3-54-g00ecf