From: Markus Armbruster Date: Sun, 17 Feb 2008 08:01:29 +0000 (+0100) Subject: Consider only wilderness for randomly placed sanctuaries X-Git-Tag: v4.3.12~170 X-Git-Url: http://git.pond.sub.org/?p=empserver;a=commitdiff_plain;h=1f4d483b78fb9730af58eb0e6143cb452015c46f Consider only wilderness for randomly placed sanctuaries Before, any non-sea sector was acceptable. Placing sanctuaries on mountains, plains or bridges doesn't seem such a bright idea, though. --- diff --git a/src/lib/commands/new.c b/src/lib/commands/new.c index fabf6b356..aef15eb30 100644 --- a/src/lib/commands/new.c +++ b/src/lib/commands/new.c @@ -105,10 +105,10 @@ new(void) * another place on the map. */ getsect(x, y, §); - if (sect.sct_type == SCT_WATER || sect.sct_own != 0) + if (sect.sct_type != SCT_RURAL || sect.sct_own != 0) continue; getsect(x + 2, y, §); - if (sect.sct_type == SCT_WATER || sect.sct_own != 0) + if (sect.sct_type != SCT_RURAL || sect.sct_own != 0) continue; if (isok(x, y)) break;