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:
parent
d3a3aa4306
commit
1f4d483b78
1 changed files with 2 additions and 2 deletions
|
@ -105,10 +105,10 @@ new(void)
|
||||||
* another place on the map.
|
* another place on the map.
|
||||||
*/
|
*/
|
||||||
getsect(x, y, §);
|
getsect(x, y, §);
|
||||||
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, §);
|
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;
|
continue;
|
||||||
if (isok(x, y))
|
if (isok(x, y))
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue