diff --git a/rug.cpp b/rug.cpp index 45f03ca7..33ab1f0e 100644 --- a/rug.cpp +++ b/rug.cpp @@ -1120,8 +1120,14 @@ void actDraw() { if(keystate[SDLK_DOWN]) strafey += alpha; } - for(int i=0; iflat = t * points[i]->flat; + if(qm) { + if(keystate[SDLK_LCTRL]) + push_all_points(2, +model_distance); + for(int i=0; iflat = t * points[i]->flat; + } + if(keystate[SDLK_LCTRL]) + push_all_points(2, -model_distance); } model_distance -= push; @@ -1197,7 +1203,7 @@ hyperpoint gethyper(ld x, ld y) { tx /= det; ty /= det; if(tx >= 0 && ty >= 0 && tx+ty <= 1) { double rz1 = p0[2] * (1-tx-ty) + p1[2] * tx + p2[2] * ty; - rz1 = -rz1; + rz1 = -rz1; if(!rug_perspective) rz1 += model_distance; if(rz1 < radar_distance) { radar_distance = rz1; rx1 = r0->x1 + (r1->x1 - r0->x1) * tx + (r2->x1 - r0->x1) * ty; @@ -1291,7 +1297,7 @@ void show() { dialog::reaction = [] () { err_zero_current = err_zero; }; } else if(uni == 'r') - addMessage(XLAT("This just shows the distance from the camera to the cursor.")); + addMessage(XLAT("This just shows the 'z' coordinate of the selected point.")); else if(uni == 'm') { dialog::editNumber(modelscale, 0.1, 10, .1, 1, "model scale factor", "This is relevant when the native geometry is not hyperbolic. " diff --git a/util.cpp b/util.cpp index 8f464cbe..7c59976d 100644 --- a/util.cpp +++ b/util.cpp @@ -8,7 +8,7 @@ string its(int i) { char buf[64]; sprintf(buf, "%d", i); return buf; } string fts(float x) { char buf[64]; sprintf(buf, "%4.2f", x); return buf; } string fts3(float x) { char buf[64]; sprintf(buf, "%5.3f", x); return buf; } string fts4(float x) { char buf[64]; sprintf(buf, "%6.4f", x); return buf; } -string ftsg(float x) { char buf[64]; sprintf(buf, "%8.5g", x); return buf; } +string ftsg(float x) { char buf[64]; sprintf(buf, "%4.2g", x); return buf; } string ftssmart(ld x) { if(x == int(x)) return its(int(x));