From 36b6c11996840f8e80182737fe95eb643505ec53 Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Sat, 21 Nov 2009 16:52:11 +0100 Subject: Choose sanctuary-style once. Cross-like, grid, circle etc. now actually appear as such. I assume this is how it was intended? --- crawl-ref/source/areas.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/areas.cc') 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); -- cgit v1.2.3-54-g00ecf