1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-03-17 02:29:44 +00:00

simplified the scaling scode

This commit is contained in:
Zeno Rogue
2018-08-28 19:05:57 +02:00
parent 6d5d8d8134
commit 015e69cf30
6 changed files with 386 additions and 431 deletions

View File

@@ -506,18 +506,17 @@ bool step(int delta) {
return false;
}
ld scale;
void compute_geometry() {
if(IRREGULAR) {
scale = sqrt(isize(cells_of_heptagon) * 1. / isize(cells));
ld scale = sqrt(isize(cells_of_heptagon) * 1. / isize(cells));
crossf *= scale;
hepvdist *= scale;
rhexf *= scale;
hexhexdist *= scale;
hexvdist *= scale;
base_distlimit = (base_distlimit + log(scale) / log(2.618)) / scale;
if(base_distlimit > 25) base_distlimit = 25;
}
else scale = 1;
}
bool draw_cell_schematics(cell *c, transmatrix V) {