1
0
Fork 0

the const-ness wasn't such a good idea :-)

This commit is contained in:
mfranz 2006-01-28 22:41:20 +00:00
parent dc7cc2015b
commit 267e558bd2

View file

@ -324,13 +324,13 @@ FGInput::doMouseClick (int b, int updown, int x, int y)
Point3D geod = sgCartToGeod(Point3D(hit[0], hit[1], hit[2]));
static const SGPropertyNode_ptr lon
static SGPropertyNode_ptr lon
= fgGetNode("/sim/input/click/longitude-deg", true);
static const SGPropertyNode_ptr lat
static SGPropertyNode_ptr lat
= fgGetNode("/sim/input/click/latitude-deg", true);
static const SGPropertyNode_ptr elev_m
static SGPropertyNode_ptr elev_m
= fgGetNode("/sim/input/click/elevation-m", true);
static const SGPropertyNode_ptr elev_ft
static SGPropertyNode_ptr elev_ft
= fgGetNode("/sim/input/click/elevation-ft", true);
lon->setDoubleValue(geod.lon() * SGD_RADIANS_TO_DEGREES);