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

removed cgi.hepvdist, it was not even computed

This commit is contained in:
Zeno Rogue 2024-06-18 17:26:52 +02:00
parent aae1be2191
commit 263720db60
3 changed files with 1 additions and 4 deletions

View File

@ -168,8 +168,7 @@ struct geometry_information {
/** distance between hexagon vertex and hexagon center */
ld hexvdist;
/** distance between heptagon vertex and hexagon center (either hcrossf or something else) */
ld hepvdist;
ld unused_value_1; /* removed */
/** distance from heptagon center to heptagon vertex (either hexf or hcrossf) */
ld rhexf;

View File

@ -734,7 +734,6 @@ EX namespace gp {
ld scale = 1 / hypot_d(2, next);
if(!GOLDBERG) scale = 1;
cgi.crossf *= scale;
cgi.hepvdist *= scale;
cgi.hexhexdist *= scale;
cgi.hexvdist *= scale;
cgi.rhexf *= scale;

View File

@ -480,7 +480,6 @@ EX void compute_geometry() {
if(IRREGULAR) {
ld scale = sqrt(isize(cells_of_heptagon) * 1. / isize(cells));
cgi.crossf *= scale;
cgi.hepvdist *= scale;
cgi.rhexf *= scale;
cgi.hexhexdist *= scale;
cgi.hexvdist *= scale;