diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-11-23 02:26:53 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-11-23 02:26:53 +0100 |
commit | bcba86f02265f223f5fbe1640cd620495b4160c9 (patch) | |
tree | ad5e9fa10fb63ce6c270ee7dace167837ca10866 /crawl-ref/source/spl-tornado.cc | |
parent | 51ab6d642295faabc6569fcfe860964ef157840f (diff) | |
download | crawl-ref-bcba86f02265f223f5fbe1640cd620495b4160c9.tar.gz crawl-ref-bcba86f02265f223f5fbe1640cd620495b4160c9.zip |
Assert that tornado rotation found a valid spot.
Diffstat (limited to 'crawl-ref/source/spl-tornado.cc')
-rw-r--r-- | crawl-ref/source/spl-tornado.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/spl-tornado.cc b/crawl-ref/source/spl-tornado.cc index 2b33dbff28..e078aec5b6 100644 --- a/crawl-ref/source/spl-tornado.cc +++ b/crawl-ref/source/spl-tornado.cc @@ -185,6 +185,9 @@ static coord_def _rotate(coord_def org, coord_def from, best = avail[i], hiscore = score; } + // must find _something_, the original space might be already taken + ASSERT(hiscore != 1e38); + return best; } |