mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 14:02:59 +00:00 
			
		
		
		
	Hypersian Rug mode works with Archimedean tilings
This commit is contained in:
		
							
								
								
									
										9
									
								
								rug.cpp
									
									
									
									
									
								
							
							
						
						
									
										9
									
								
								rug.cpp
									
									
									
									
									
								
							| @@ -588,7 +588,14 @@ void buildRug() { | |||||||
|   for(auto& p: vptr) { |   for(auto& p: vptr) { | ||||||
|     cell *c = p.first; |     cell *c = p.first; | ||||||
|     rugpoint *v = p.second; |     rugpoint *v = p.second; | ||||||
|     for(int j=0; j<c->type; j++) try { |      | ||||||
|  |     if(archimedean) { | ||||||
|  |       rugpoint *p[MAX_EDGE+1]; | ||||||
|  |       for(int j=0; j<c->type; j++) p[j] = findOrAddRugpoint(ggmatrix(c) * get_corner_position(c, j), v->dist); | ||||||
|  |       for(int j=0; j<c->type; j++) addTriangle(v, p[j], p[(j+1) % c->type]); | ||||||
|  |       } | ||||||
|  |      | ||||||
|  |     else for(int j=0; j<c->type; j++) try { | ||||||
|       cell *c2 = c->move(j); |       cell *c2 = c->move(j); | ||||||
|       rugpoint *w = vptr.at(c2); |       rugpoint *w = vptr.at(c2); | ||||||
|       // if(v<w) addEdge(v, w); |       // if(v<w) addEdge(v, w); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue