mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 14:02:59 +00:00 
			
		
		
		
	improved correctness checking for Archimedean symbols: 6,5 or 6,4,2 are no longer valid
This commit is contained in:
		| @@ -170,13 +170,24 @@ void archimedean_tiling::prepare() { | ||||
|     errors++; | ||||
|     return; | ||||
|     } | ||||
|   if(isize(faces) < 2) { | ||||
|  | ||||
|   for(int i: faces) if(i < 2) { | ||||
|     errormsg = XLAT("not enough edges"); | ||||
|     errors++; | ||||
|     return; | ||||
|     } | ||||
|  | ||||
|   vector<int> nondigonal; | ||||
|   for(int i: faces) if(i > 2) nondigonal.push_back(i); | ||||
|  | ||||
|   if(isize(faces) < 2 || isize(nondigonal) == 1) { | ||||
|     errormsg = XLAT("not enough faces"); | ||||
|     errors++; | ||||
|     return; | ||||
|     } | ||||
|   for(int i: faces) if(i < 2) { | ||||
|     errormsg = XLAT("not enough edges"); | ||||
|      | ||||
|   if(isize(nondigonal) == 2 && faces[0] != faces[1]) { | ||||
|     errormsg = XLAT("invalid dihedron"); | ||||
|     errors++; | ||||
|     return; | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue