summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/travel.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-06-26 06:38:49 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-06-26 06:38:49 +0000
commit9540dc0c39636e9baef2b3e04199aea0fcd3da52 (patch)
tree914038193d3b0d2dffd8fe8f76aea0b58dfd369b /crawl-ref/source/travel.cc
parentf24de6a08329516fa426f96b483aa931e5efe25f (diff)
downloadcrawl-ref-9540dc0c39636e9baef2b3e04199aea0fcd3da52.tar.gz
crawl-ref-9540dc0c39636e9baef2b3e04199aea0fcd3da52.zip
[1743293] Fixed merfolk not getting free travel through water.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1657 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/travel.cc')
-rw-r--r--crawl-ref/source/travel.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/travel.cc b/crawl-ref/source/travel.cc
index 16632d34c0..74a30dd9a2 100644
--- a/crawl-ref/source/travel.cc
+++ b/crawl-ref/source/travel.cc
@@ -475,8 +475,9 @@ static void init_terrain_check()
// Permanently levitating players can cross most hostile terrain.
signed char trav = player_is_permalevitating()?
TRAVERSABLE : IMPASSABLE;
-
- set_pass_feature(DNGN_DEEP_WATER, trav);
+
+ if (water != TRAVERSABLE)
+ set_pass_feature(DNGN_DEEP_WATER, trav);
set_pass_feature(DNGN_LAVA, trav);
set_pass_feature(DNGN_TRAP_MECHANICAL, trav);
}