diff options
author | Darshan Shaligram <dshaligram@users.sourceforge.net> | 2009-12-30 18:57:44 +0530 |
---|---|---|
committer | Darshan Shaligram <dshaligram@users.sourceforge.net> | 2009-12-30 18:57:44 +0530 |
commit | 6e3091bac7e44e0d629ba23a9ba2722c68e4b653 (patch) | |
tree | b82d6a8e909273fce99c9a16035a6e5f3a7405a1 /crawl-ref/source | |
parent | 23a78d07d2d1db6096497dc226d90e12eb010926 (diff) | |
download | crawl-ref-6e3091bac7e44e0d629ba23a9ba2722c68e4b653.tar.gz crawl-ref-6e3091bac7e44e0d629ba23a9ba2722c68e4b653.zip |
Prevent Shoals tide from drowning monsters and player if they cannot be moved out of the way. (syllogism)
Diffstat (limited to 'crawl-ref/source')
-rw-r--r-- | crawl-ref/source/dgn-shoals.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/crawl-ref/source/dgn-shoals.cc b/crawl-ref/source/dgn-shoals.cc index e9e563cea3..1facae1206 100644 --- a/crawl-ref/source/dgn-shoals.cc +++ b/crawl-ref/source/dgn-shoals.cc @@ -938,9 +938,12 @@ static bool _shoals_tide_sweep_actors_clear(coord_def c) return true; } coord_def evacuation_point(_shoals_escape_place_from(c, victim, NULL)); - // The tide moves on even if we cannot evacuate the tile! - if (!evacuation_point.origin()) - victim->move_to_pos(evacuation_point); + // The tide no longer drowns monster/player if it cannot push them + // out of the way. + if (evacuation_point.origin()) + return false; + + victim->move_to_pos(evacuation_point); return true; } |