mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 14:02:59 +00:00 
			
		
		
		
	rulegen:: better debug
This commit is contained in:
		| @@ -1716,7 +1716,7 @@ EX void rules_iteration() { | |||||||
|     clean_parents(); |     clean_parents(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|   if(debugflags & DF_GEOM) println(hlog, "attempt: ", try_count); |   if(debugflags & DF_GEOM) println(hlog, "attempt: ", try_count, " important = ", isize(important), " cells = ", tcellcount); | ||||||
|  |  | ||||||
|   auto c = first_tcell; |   auto c = first_tcell; | ||||||
|   while(c) { c->code = MYSTERY; c = c->next; } |   while(c) { c->code = MYSTERY; c = c->next; } | ||||||
| @@ -1952,6 +1952,8 @@ EX void generate_rules() { | |||||||
|       break; |       break; | ||||||
|       } |       } | ||||||
|     catch(rulegen_retry& e) {  |     catch(rulegen_retry& e) {  | ||||||
|  |       if(debugflags & DF_GEOM) | ||||||
|  |         println(hlog, "result ", try_count, ": ", e.what()); | ||||||
|       if(try_count >= max_retries) throw; |       if(try_count >= max_retries) throw; | ||||||
|       } |       } | ||||||
|     } |     } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue