diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-11-21 16:52:11 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-11-21 16:55:35 +0100 |
commit | 36b6c11996840f8e80182737fe95eb643505ec53 (patch) | |
tree | fb91cb6e443b4aa7494330a9479ac4e67df4f39c /crawl-ref | |
parent | 78ab73b26c039a52aa3a61425538b96e71445661 (diff) | |
download | crawl-ref-36b6c11996840f8e80182737fe95eb643505ec53.tar.gz crawl-ref-36b6c11996840f8e80182737fe95eb643505ec53.zip |
Choose sanctuary-style once.
Cross-like, grid, circle etc. now actually appear as such. I
assume this is how it was intended?
Diffstat (limited to 'crawl-ref')
-rw-r--r-- | crawl-ref/source/areas.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/areas.cc b/crawl-ref/source/areas.cc index 7477f83180..2200b445b1 100644 --- a/crawl-ref/source/areas.cc +++ b/crawl-ref/source/areas.cc @@ -125,6 +125,7 @@ void create_sanctuary(const coord_def& center, int time) int cloud_count = 0; monsters *seen_mon = NULL; + int shape = random2(4); for (radius_iterator ri(center, radius, C_POINTY); ri; ++ri) { const coord_def pos = *ri; @@ -145,7 +146,7 @@ void create_sanctuary(const coord_def& center, int time) // forming patterns const int x = pos.x - center.x, y = pos.y - center.y; bool in_yellow = false; - switch (random2(4)) + switch (shape) { case 0: // outward rays in_yellow = (x == 0 || y == 0 || x == y || x == -y); |