diff options
author | Steve Melenchuk <smelenchuk@gmail.com> | 2014-03-06 11:56:02 -0700 |
---|---|---|
committer | Steve Melenchuk <smelenchuk@gmail.com> | 2014-03-06 11:56:02 -0700 |
commit | 587b4fded1ad0b496cce0a708282ca00d3c1dc84 (patch) | |
tree | a729f912e7582b8ebdc584e59629f42842ecf041 /crawl-ref/source/teleport.h | |
parent | 6f24510ddd6b1be80c396e74d537a9a915535ebc (diff) | |
download | crawl-ref-587b4fded1ad0b496cce0a708282ca00d3c1dc84.tar.gz crawl-ref-587b4fded1ad0b496cce0a708282ca00d3c1dc84.zip |
Don't crash on semicontrolled blink (#8236).
Broken by a5274fd.
Diffstat (limited to 'crawl-ref/source/teleport.h')
-rw-r--r-- | crawl-ref/source/teleport.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/teleport.h b/crawl-ref/source/teleport.h index 457943d469..fd724a09d6 100644 --- a/crawl-ref/source/teleport.h +++ b/crawl-ref/source/teleport.h @@ -13,7 +13,8 @@ void blink_close(monster* mon); bool valid_blink_destination(const actor* moved, const coord_def& target, bool forbid_sanctuary = false, bool forbid_unhabitable = true); -bool random_near_space(const coord_def& origin, coord_def& target, +bool random_near_space(const actor* victim, + const coord_def& origin, coord_def& target, bool allow_adjacent = false, bool forbid_sanctuary = false, bool forbid_unhabitable = true); |