summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dgn-shoals.cc
diff options
context:
space:
mode:
authorDarshan Shaligram <dshaligram@users.sourceforge.net>2010-01-17 11:28:50 +0530
committerDarshan Shaligram <dshaligram@users.sourceforge.net>2010-01-17 11:28:50 +0530
commit8d1fa5916d012588e2eaa62fcdcc62768dcb86e1 (patch)
tree2767c7dc72667e8ce9197dae92382a5043642a5b /crawl-ref/source/dgn-shoals.cc
parentc4246fc216beca0282bf281274a3756a10086f87 (diff)
downloadcrawl-ref-8d1fa5916d012588e2eaa62fcdcc62768dcb86e1.tar.gz
crawl-ref-8d1fa5916d012588e2eaa62fcdcc62768dcb86e1.zip
Add FPROP_NO_TIDE to tell the tide not to touch certain squares.
Wizmode &( now accepts fprop names to set the fprop on the current square.
Diffstat (limited to 'crawl-ref/source/dgn-shoals.cc')
-rw-r--r--crawl-ref/source/dgn-shoals.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/dgn-shoals.cc b/crawl-ref/source/dgn-shoals.cc
index 3f9637cbad..e5bee1e121 100644
--- a/crawl-ref/source/dgn-shoals.cc
+++ b/crawl-ref/source/dgn-shoals.cc
@@ -9,6 +9,7 @@
#include "dgn-height.h"
#include "env.h"
#include "flood_find.h"
+#include "fprop.h"
#include "items.h"
#include "maps.h"
#include "mgen_data.h"
@@ -846,6 +847,9 @@ static tide_direction _shoals_feature_tide_height_change(
static void _shoals_apply_tide_at(coord_def c, int tide)
{
+ if (is_tide_immune(c))
+ return;
+
const int effective_height = dgn_height_at(c) - tide;
dungeon_feature_type newfeat =
_shoals_feature_by_height(effective_height);