]> git.mxchange.org Git - flightgear.git/commitdiff
only write coordinates on button press, and not again on release
authormfranz <mfranz>
Fri, 3 Feb 2006 11:39:04 +0000 (11:39 +0000)
committermfranz <mfranz>
Fri, 3 Feb 2006 11:39:04 +0000 (11:39 +0000)
src/Input/input.cxx

index 003362ace2c95013e12e23fc971684ff2dc8eff8..bd8ee9d01bedb16662042ac6d7bdc3d4a889114e 100644 (file)
@@ -319,7 +319,7 @@ FGInput::doMouseClick (int b, int updown, int x, int y)
       // and be happy.
       FGScenery* scenery = globals->get_scenery();
       sgdVec3 start, dir, hit;
-      if (FGRenderer::getPickInfo(start, dir, x, y) &&
+      if (updown && FGRenderer::getPickInfo(start, dir, x, y) &&
           scenery->get_cart_ground_intersection(start, dir, hit)) {
 
         Point3D geod = sgCartToGeod(Point3D(hit[0], hit[1], hit[2]));