1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-14 05:57:37 +00:00

'faces per vertex' and 'size of the world' now display correct values in all geometries; 'sides per face' removed

This commit is contained in:
Zeno Rogue
2018-08-29 21:16:45 +02:00
parent 020d9679bd
commit c06f01847c
2 changed files with 40 additions and 2 deletions

View File

@@ -1151,6 +1151,7 @@ string archimedean_tiling::world_size() {
denom = denom / g * f;
}
int anom = 0, adenom = 1;
if(BITRUNCATED) anom = 1, adenom = 1;
for(int f: faces) {
int g = gcd(adenom, f);
anom = (anom * f + adenom) / g;