summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/areas.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-11-21 16:52:11 +0100
committerRobert Vollmert <rvollmert@gmx.net>2009-11-21 16:55:35 +0100
commit36b6c11996840f8e80182737fe95eb643505ec53 (patch)
treefb91cb6e443b4aa7494330a9479ac4e67df4f39c /crawl-ref/source/areas.cc
parent78ab73b26c039a52aa3a61425538b96e71445661 (diff)
downloadcrawl-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/source/areas.cc')
-rw-r--r--crawl-ref/source/areas.cc3
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);