1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-08-28 08:22:18 +00:00

clearer error message

This commit is contained in:
Zeno Rogue 2025-07-09 12:50:39 +02:00
parent 572c62ecde
commit 64e9abd772

View File

@ -633,7 +633,7 @@ EX bool compute_vertex_valence_flat(arb::arbi_tiling& ac) {
}
while(total < TAU - 1e-6);
if(total == 0) qty = OINF;
if(total > TAU + 1e-6) throw connection_error(i, "improper total in compute_stats");
if(total > TAU + 1e-6) throw connection_error(i, "jumped past 360 degrees while determining vertex_valence");
if(at.sid != i) throw connection_error(i, "ended at wrong type determining vertex_valence");
if((at.eid - k) % ac.shapes[i].cycle_length) {
reduce_gcd(ac.shapes[i].cycle_length, at.eid - k);