1
0
Fork 0

only evaluate click-on-terrain on left mouse button clicks

This commit is contained in:
mfranz 2006-03-15 07:31:57 +00:00
parent 6b501169a5
commit 537a1149a1

View 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 (updown == MOUSE_BUTTON_DOWN && FGRenderer::getPickInfo(start, dir, x, y)
if (!b && updown == MOUSE_BUTTON_DOWN && FGRenderer::getPickInfo(start, dir, x, y)
&& scenery->get_cart_ground_intersection(start, dir, hit)) {
Point3D geod = sgCartToGeod(Point3D(hit[0], hit[1], hit[2]));