mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 05:52:59 +00:00 
			
		
		
		
	fixed CR2 generated in CR3/CR4 layouts
This commit is contained in:
		| @@ -560,7 +560,7 @@ EX bool isbar4(cell *c) { | |||||||
|  |  | ||||||
| EX bool barrier_cross(eLand l, eLand r) { | EX bool barrier_cross(eLand l, eLand r) { | ||||||
|   if(l == laCrossroads3 || r == laCrossroads3) return hrand(100) < 66; |   if(l == laCrossroads3 || r == laCrossroads3) return hrand(100) < 66; | ||||||
|   if(land_structure == lsCrossWalls) return hrand(100) < 90; |   if(land_structure == lsCrossWalls && !among(laCrossroads2, l, r)) return hrand(100) < 90; | ||||||
|   if(isElemental(l) && isElemental(r)) return hrand(100) < 75; |   if(isElemental(l) && isElemental(r)) return hrand(100) < 75; | ||||||
|   return false; |   return false; | ||||||
|   } |   } | ||||||
| @@ -616,7 +616,7 @@ EX void extendBarrier(cell *c) { | |||||||
|     if(buildBarrier6(cw, 2)) return;     |     if(buildBarrier6(cw, 2)) return;     | ||||||
|     } |     } | ||||||
|      |      | ||||||
|   if(land_structure == lsCursedWalls && c->barleft != laMirror && c->barright != laMirror && hrand(100) < 80) { |   if(land_structure == lsCursedWalls && c->barleft != laMirror && c->barright != laMirror && hrand(100) < 80 && !among(laCrossroads2, c->barleft, c->barright)) { | ||||||
|     cellwalker cw(c, c->bardir); |     cellwalker cw(c, c->bardir); | ||||||
|     cw = cw + wstep + 3 + wstep - 1; |     cw = cw + wstep + 3 + wstep - 1; | ||||||
|     if(buildBarrier6(cw, c->barright, c->barleft)) return; |     if(buildBarrier6(cw, c->barright, c->barleft)) return; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue