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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user