1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 01:00:25 +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;
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;
}