diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-11-02 10:14:38 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-11-02 10:15:58 +0100 |
commit | 085f837bc52a46badca3e3430885dd3397178c50 (patch) | |
tree | 8c67384c923aae9f34af226ecf291ac192f784d6 /crawl-ref/source/los.cc | |
parent | b5cf9fc68435f29c831ebd60b8a2c4cd80f7773f (diff) | |
download | crawl-ref-085f837bc52a46badca3e3430885dd3397178c50.tar.gz crawl-ref-085f837bc52a46badca3e3430885dd3397178c50.zip |
Quick fix for arena dispersal assertions.
The issue is blink referencing player posistion, which is invalid.
Better random_near_space fix will come.
Diffstat (limited to 'crawl-ref/source/los.cc')
-rw-r--r-- | crawl-ref/source/los.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/los.cc b/crawl-ref/source/los.cc index e67c364156..408d5e9ff0 100644 --- a/crawl-ref/source/los.cc +++ b/crawl-ref/source/los.cc @@ -737,6 +737,8 @@ int num_feats_between(const coord_def& source, const coord_def& target, int count = 0; int max_dist = grid_distance(source, target); + ASSERT(map_bounds(source) && map_bounds(target)); + if (source == target) return (0); // XXX: might want to count the cell. |