1
0
Fork 0

whoops :-}

This commit is contained in:
mfranz 2006-02-15 08:34:42 +00:00
parent ff9b7ebd64
commit 94aca555e9

View file

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