1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-18 23:10:26 +00:00

fixed largeS2-in-S3 and incorrect qvalid in Hypersian Rug

This commit is contained in:
Zeno Rogue 2018-01-31 00:11:49 +01:00
parent 2dbfc6a4ec
commit 632f8dbda5

View File

@ -250,7 +250,7 @@ rugpoint *addRugpoint(hyperpoint h, double dist) {
else /* sphere/elliptic*/ {
if(modelscale >= 1)
// do as good as we can...
scale = M_PI / 2 - 1e-3, good_shape = false;
scale = M_PI / 2 - 1e-3, good_shape = false, m->valid = false;
else scale = asin(modelscale);
}
m->flat = h * scale;
@ -612,6 +612,8 @@ void buildRug() {
sort(points.begin(), points.end(), psort);
verify();
for(auto p: points) if(p->valid) qvalid++;
}
// rug physics