mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 14:02:59 +00:00 
			
		
		
		
	added missing guards
This commit is contained in:
		| @@ -474,6 +474,7 @@ struct hrmap_crystal : hrmap_standard { | ||||
|       } | ||||
|     auto co = hcoords[h]; | ||||
|      | ||||
|     #if MAXMDIM >= 4 | ||||
|     if(crystal3()) { | ||||
|       auto st = get_canonical(co); | ||||
|       auto co1 = co + st[d]; | ||||
| @@ -485,6 +486,7 @@ struct hrmap_crystal : hrmap_standard { | ||||
|  | ||||
|       return h1; | ||||
|       } | ||||
|     #endif | ||||
|      | ||||
|     if(is_bi(cs, co)) { | ||||
|       heptspin hs(h, d); | ||||
| @@ -602,7 +604,9 @@ EX heptagon *get_heptagon_at(coord c) { return crystal_map()->get_heptagon_at(c, | ||||
| EX coord get_coord(heptagon *h) { return crystal_map()->hcoords[h]; } | ||||
| EX ldcoord get_ldcoord(cell *c) { return crystal_map()->get_coord(c); } | ||||
|  | ||||
| #if MAXMDIM >= 4 | ||||
| EX transmatrix get_adj(heptagon *h, int d) { return crystal_map()->adj(h, d); } | ||||
| #endif | ||||
|  | ||||
| bool is_bi(crystal_structure& cs, coord co) { | ||||
|   for(int i=0; i<cs.dim; i++) if(co[i] & HALFSTEP) return true; | ||||
|   | ||||
							
								
								
									
										2
									
								
								reg3.cpp
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								reg3.cpp
									
									
									
									
									
								
							| @@ -950,7 +950,6 @@ EX bool pseudohept(cell *c) { | ||||
|     }     | ||||
|   return false; | ||||
|   } | ||||
| #endif | ||||
|  | ||||
| EX void generate_cellrotations() { | ||||
|   auto &cr = cgi.cellrotations; | ||||
| @@ -978,6 +977,7 @@ EX void generate_cellrotations() { | ||||
|     } | ||||
|  | ||||
|   } | ||||
| #endif | ||||
|  | ||||
| #if 0 | ||||
| /* More precise, but very slow distance. Not used/optimized for now */ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue