mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 05:52:59 +00:00 
			
		
		
		
	fixed some potential issues with arb
This commit is contained in:
		| @@ -1376,7 +1376,7 @@ EX int wallchance(cell *c, bool deepOcean) { | ||||
| /** should we generate the horocycles in the current geometry? */ | ||||
| EX bool horo_ok() {   | ||||
|   if(INVERSE) return false; | ||||
|   return hyperbolic && !bt::in() && !arcm::in() && !kite::in() && !experimental && !hybri; | ||||
|   return hyperbolic && !bt::in() && !arcm::in() && !kite::in() && !experimental && !hybri && !arb::in(); | ||||
|   } | ||||
|  | ||||
| EX bool gp_wall_test() { | ||||
|   | ||||
							
								
								
									
										4
									
								
								cell.cpp
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								cell.cpp
									
									
									
									
									
								
							| @@ -477,7 +477,7 @@ EX int celldist(cell *c) { | ||||
|   #if CAP_IRR | ||||
|   if(IRREGULAR) return irr::celldist(c, false); | ||||
|   #endif | ||||
|   if(arcm::in() || ctof(c)) return c->master->distance; | ||||
|   if(arcm::in() || ctof(c) || arb::in()) return c->master->distance; | ||||
|   #if CAP_GP | ||||
|   if(INVERSE) { | ||||
|     cell *c1 = gp::get_mapped(c); | ||||
| @@ -1116,7 +1116,7 @@ EX int celldistance(cell *c1, cell *c2) { | ||||
|     return euc::cyldist(euc2_coordinates(c1), euc2_coordinates(c2)); | ||||
|     } | ||||
|  | ||||
|   if(arcm::in() || quotient || sn::in() || (kite::in() && euclid) || experimental || sl2 || nil)  | ||||
|   if(arcm::in() || quotient || sn::in() || (kite::in() && euclid) || experimental || sl2 || nil || arb::in())  | ||||
|     return clueless_celldistance(c1, c2); | ||||
|     | ||||
|    if(S3 >= OINF) return inforder::celldistance(c1, c2); | ||||
|   | ||||
| @@ -383,6 +383,7 @@ EX pair<int, bool> fieldval(cell *c) { | ||||
| EX int fieldval_uniq(cell *c) { | ||||
|   if(fake::in()) return FPIU(fieldval_uniq(c)); | ||||
|   if(experimental) return 0; | ||||
|   else if(arb::in()) return arb::id_of(c->master); | ||||
|   else if(hybri) {  | ||||
|     auto c1 = hybrid::get_where(c).first;  | ||||
|     return PIU ( fieldval_uniq(c1) ); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue