1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 17:10:36 +00:00

fixed the computation of gp::alpha (was visibly bad on GP(2,2) cube)

This commit is contained in:
Zeno Rogue 2018-05-04 18:05:26 +02:00
parent 94c72f5d89
commit c8bc90ea86

View File

@ -475,7 +475,7 @@ namespace gp {
rhexf *= scale; rhexf *= scale;
// spin = spintox(next); // spin = spintox(next);
// ispin = rspintox(next); // ispin = rspintox(next);
alpha = -atan2(next[1], next[0]); alpha = -atan2(next[1], next[0]) * 6 / S7;
base_distlimit = (base_distlimit + log(scale) / log(2.618)) / scale; base_distlimit = (base_distlimit + log(scale) / log(2.618)) / scale;
if(base_distlimit > 30) if(base_distlimit > 30)
base_distlimit = 30; base_distlimit = 30;