From 38d44f2c010b95c440e28573726a3074fc6233e7 Mon Sep 17 00:00:00 2001 From: mfranz Date: Fri, 3 Feb 2006 11:39:04 +0000 Subject: [PATCH] only write coordinates on button press, and not again on release --- src/Input/input.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Input/input.cxx b/src/Input/input.cxx index 003362ace..bd8ee9d01 100644 --- a/src/Input/input.cxx +++ b/src/Input/input.cxx @@ -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])); -- 2.39.5