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.
This commit is contained in:
Markus Armbruster 2008-02-17 09:01:29 +01:00
parent d3a3aa4306
commit 1f4d483b78

View file

@ -105,10 +105,10 @@ new(void)
* another place on the map. * another place on the map.
*/ */
getsect(x, y, &sect); getsect(x, y, &sect);
if (sect.sct_type == SCT_WATER || sect.sct_own != 0) if (sect.sct_type != SCT_RURAL || sect.sct_own != 0)
continue; continue;
getsect(x + 2, y, &sect); getsect(x + 2, y, &sect);
if (sect.sct_type == SCT_WATER || sect.sct_own != 0) if (sect.sct_type != SCT_RURAL || sect.sct_own != 0)
continue; continue;
if (isok(x, y)) if (isok(x, y))
break; break;