mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 22:12:59 +00:00 
			
		
		
		
	fixed a freeze in some Archimedean geometries
This commit is contained in:
		
							
								
								
									
										13
									
								
								polygons.cpp
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								polygons.cpp
									
									
									
									
									
								
							| @@ -116,11 +116,14 @@ vector<unique_ptr<drawqueueitem>> ptds; | |||||||
| void hpcpush(hyperpoint h) {  | void hpcpush(hyperpoint h) {  | ||||||
|   if(sphere) h = mid(h,h); |   if(sphere) h = mid(h,h); | ||||||
|   ld threshold = (DIM == 3 || last->flags & POLY_TRIANGLES)  ? 100 : (sphere ? (ISMOBWEB || NONSTDVAR ? .04 : .001) : 0.1) * pow(.25, vid.linequality); |   ld threshold = (DIM == 3 || last->flags & POLY_TRIANGLES)  ? 100 : (sphere ? (ISMOBWEB || NONSTDVAR ? .04 : .001) : 0.1) * pow(.25, vid.linequality); | ||||||
|   if(/*vid.usingGL && */!first && intval(hpc.back(), h) > threshold) { |   if(/*vid.usingGL && */!first) { | ||||||
|     hyperpoint md = mid(hpc.back(), h); |     ld i = intval(hpc.back(), h); | ||||||
|     hpcpush(md); |     if(i > threshold && i < 10) { | ||||||
|     hpcpush(h); |       hyperpoint md = mid(hpc.back(), h); | ||||||
|     return; |       hpcpush(md); | ||||||
|  |       hpcpush(h); | ||||||
|  |       return; | ||||||
|  |       } | ||||||
|     } |     } | ||||||
|   first = false; |   first = false; | ||||||
|   hpc.push_back(h); |   hpc.push_back(h); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue