mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-30 21:42:59 +00:00 
			
		
		
		
	fixed distance computation in quotient spaces (necessary for rotspace)
This commit is contained in:
		
							
								
								
									
										2
									
								
								cell.cpp
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								cell.cpp
									
									
									
									
									
								
							| @@ -473,7 +473,7 @@ EX int celldist(cell *c) { | ||||
|     return hybrid::celldistance(c, currentmap->gamestart()); | ||||
|   if(nil && !quotient) return DISTANCE_UNKNOWN; | ||||
|   if(euc::in()) return celldistance(currentmap->gamestart(), c); | ||||
|   if(sphere || bt::in() || WDIM == 3 || cryst || sn::in() || kite::in()) return celldistance(currentmap->gamestart(), c); | ||||
|   if(sphere || bt::in() || WDIM == 3 || cryst || sn::in() || kite::in() || bounded) return celldistance(currentmap->gamestart(), c); | ||||
|   #if CAP_IRR | ||||
|   if(IRREGULAR) return irr::celldist(c, false); | ||||
|   #endif | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue