1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 14:37:16 +00:00

compute Euler characteristics when worldsize known

This commit is contained in:
Zeno Rogue 2020-04-11 00:41:48 +02:00
parent 9914ddf3ee
commit 1688bfcfb0

View File

@ -660,7 +660,9 @@ EX void showEuclideanMenu() {
break; break;
default: default:
println(hlog, "warning: Euler characteristics unknown"); worldsize = isize(currentmap->allcells());
println(hlog, "warning: Euler characteristics unknown, worldsize = ", worldsize);
euler = 2 * worldsize * denom / nom;
break; break;
} }