1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-01-27 21:11:20 +00:00

2d3d:: mouse reading

This commit is contained in:
Zeno Rogue
2019-05-09 17:02:50 +02:00
parent 0a4ccb2b5c
commit 9c1efae2f6
2 changed files with 26 additions and 12 deletions

View File

@@ -668,7 +668,9 @@ bool playerfound; // has player been found in the last drawing?
double q3 = sqrt(double(3));
bool outofmap(hyperpoint h) {
if(euclid)
if(GDIM == 3)
return false;
else if(euclid)
return h[2] < .5; // false; // h[0] * h[0] + h[1] * h[1] > 15 * crossf;
else if(sphere)
return h[2] < .1 && h[2] > -.1 && h[1] > -.1 && h[1] < .1 && h[0] > -.1 && h[0] < .1;