From: mfranz Date: Fri, 3 Feb 2006 11:39:04 +0000 (+0000) Subject: only write coordinates on button press, and not again on release X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=38d44f2c010b95c440e28573726a3074fc6233e7;p=flightgear.git only write coordinates on button press, and not again on release --- 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]));