From fcec90d8fb256438bae0026f6114536499bb7bc9 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Tue, 7 Nov 2017 14:17:13 +0100 Subject: [PATCH] click out-of-torus does nothing now --- hypgraph.cpp | 2 +- rug.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hypgraph.cpp b/hypgraph.cpp index 2b8444db..4e366a96 100644 --- a/hypgraph.cpp +++ b/hypgraph.cpp @@ -244,7 +244,7 @@ double q3 = sqrt(double(3)); bool outofmap(hyperpoint h) { if(euclid) - return false; // h[0] * h[0] + h[1] * h[1] > 15 * eurad; + return h[2] < .5; // false; // h[0] * h[0] + h[1] * h[1] > 15 * eurad; else if(sphere) return h[2] < .1 && h[2] > -.1 && h[1] > -.1 && h[1] < .1 && h[0] > -.1 && h[0] < .1; else diff --git a/rug.cpp b/rug.cpp index 825f6356..735f1099 100644 --- a/rug.cpp +++ b/rug.cpp @@ -796,7 +796,7 @@ hyperpoint gethyper(ld x, ld y) { } } - if(!found) return hpxy(0,0); + if(!found) return Hypc; double px = rx1 * TEXTURESIZE, py = (1-ry1) * TEXTURESIZE;