mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 05:52:59 +00:00 
			
		
		
		
	debug_voronoi option
This commit is contained in:
		| @@ -1815,6 +1815,7 @@ EX void start_camelot(cell *c) { | |||||||
|     } |     } | ||||||
|   } |   } | ||||||
|  |  | ||||||
|  | EX bool debug_voronoi; | ||||||
| EX map<heptagon*, eLand> horodisk_land; | EX map<heptagon*, eLand> horodisk_land; | ||||||
| EX map<heptagon*, eLand> horodisk_last_land; | EX map<heptagon*, eLand> horodisk_last_land; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -2105,6 +2105,11 @@ void celldrawer::draw_cellstat() { | |||||||
|       queuestr(V * rgpushxto0(mid(currentmap->get_corner(c, i, 4), currentmap->get_corner(c, i+1, 5))), .2, its(i), 0xFFFFFFFF, 1); |       queuestr(V * rgpushxto0(mid(currentmap->get_corner(c, i, 4), currentmap->get_corner(c, i+1, 5))), .2, its(i), 0xFFFFFFFF, 1); | ||||||
|       } |       } | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |   if(debug_voronoi && ls::voronoi_structure() && mod_allowed()) { | ||||||
|  |     auto p = get_voronoi_winner(c); | ||||||
|  |     queuestr(V, .2, its(p.second), index_pointer_int(p.first) * 0x7F3015, 1); | ||||||
|  |     } | ||||||
|      |      | ||||||
|   if(cmode & sm::TORUSCONFIG) { |   if(cmode & sm::TORUSCONFIG) { | ||||||
|     auto p = euc::coord_display(V, c); |     auto p = euc::coord_display(V, c); | ||||||
|   | |||||||
| @@ -3223,6 +3223,8 @@ EX int config3 = addHook(hooks_configfile, 100, [] { | |||||||
|     "Setting 1 uses the internal shape IDs, while setting 2 in tes files uses " |     "Setting 1 uses the internal shape IDs, while setting 2 in tes files uses " | ||||||
|     "the original IDs in case if extra tile types were added to " |     "the original IDs in case if extra tile types were added to " | ||||||
|     "separate mirror images or different football types.", 'd'); |     "separate mirror images or different football types.", 'd'); | ||||||
|  |   param_b(debug_voronoi, "debug_voronoi")->editable( | ||||||
|  |     "display Voronoi tie debug values", 'd'); | ||||||
|   param_f(global_boundary_ratio, "global_boundary_ratio") |   param_f(global_boundary_ratio, "global_boundary_ratio") | ||||||
|   ->editable(0, 5, 0.1, "Width of cell boundaries", |   ->editable(0, 5, 0.1, "Width of cell boundaries", | ||||||
|     "How wide should the cell boundaries be.", '0'); |     "How wide should the cell boundaries be.", '0'); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue