mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-09-19 02:10:41 +00:00
Merge pull request #457 from josephcsible/wfcspill
Stop WFC generation from spilling 1 tile into neighboring lands
This commit is contained in:
+1
-1
@@ -220,7 +220,7 @@ EX void invoke() {
|
|||||||
c->wall = p.first[0];
|
c->wall = p.first[0];
|
||||||
c->wparam = p.first[0];
|
c->wparam = p.first[0];
|
||||||
forCellEx(c1, c) {
|
forCellEx(c1, c) {
|
||||||
if(c1->wall != waBarrier)
|
if(c1->wall != waBarrier && c1->land == c->land)
|
||||||
c1->wparam = c1->wall = p.first[idx];
|
c1->wparam = c1->wall = p.first[idx];
|
||||||
idx++;
|
idx++;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user