From 0fbd1c2be8f050e78bedc33f1c1cfbda8e00af59 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Mon, 30 Oct 2017 19:10:25 +0100 Subject: [PATCH] fixed a bug when starting from CR2 --- barriers.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/barriers.cpp b/barriers.cpp index 14c159d5..539a8507 100644 --- a/barriers.cpp +++ b/barriers.cpp @@ -748,9 +748,11 @@ void buildCrossroads2(cell *c) { int h = c->landparam; if(h/4 >= 8 && h/4 <= 11) { - for(int i=0; itype; i++) { - createMov(c, i)->land = laCrossroads2; - if(!c->mov[i]->landparam) buildCrossroads2(c->mov[i]); + for(int i=0; itype; i++) if(c->land != laBarrier) { + cell *c2 = createMov(c, i); + if(c2->land == laBarrier) continue; + c2->land = laCrossroads2; + if(!c2->landparam) buildCrossroads2(c2); } if(h/4 == 8 || h/4 == 10) for(int i=0; itype; i++) {