From 16af0422e54e97a9f6ca2f275ed51c19775b7b80 Mon Sep 17 00:00:00 2001 From: haranp Date: Wed, 5 Dec 2007 15:22:45 +0000 Subject: Travel will now avoid deep water unless you're permanently safe in it. Failing to displace a monster triggers an interrupt. Fixed up autoinscription a bit more. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3004 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/player.cc | 4 ++-- 1 file changed, 2 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 65917af34b..917f95518c 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -352,9 +352,9 @@ bool player_in_water(void) return (you.in_water()); } -bool player_likes_water(void) +bool player_likes_water(bool permanently) { - return (player_can_swim() || beogh_water_walk()); + return (player_can_swim() || (!permanently && beogh_water_walk())); } bool player_is_swimming(void) -- cgit v1.2.3-54-g00ecf