From 7c9fa25743dc04058d5b81aadedbee60528d5861 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Mon, 2 Mar 2020 13:17:48 +0100 Subject: [PATCH] fixed Great Walls in WFC --- wfcgen.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wfcgen.cpp b/wfcgen.cpp index 5eab4197..19c6bcaf 100644 --- a/wfcgen.cpp +++ b/wfcgen.cpp @@ -219,7 +219,11 @@ EX void invoke() { int idx = 1; c->wall = p.first[0]; c->wparam = p.first[0]; - forCellEx(c1, c) c1->wparam = c1->wall = p.first[idx++]; + forCellEx(c1, c) { + if(c1->wall != waBarrier) + c1->wparam = c1->wall = p.first[idx]; + idx++; + } break; } }