1
0
Fork 0

make it const

This commit is contained in:
mfranz 2006-01-27 22:26:47 +00:00
parent 7a27d247d4
commit 6de1f56f2c

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 SGPropertyNode_ptr lon
static const SGPropertyNode_ptr lon
= fgGetNode("/sim/input/click/longitude-deg", true);
static SGPropertyNode_ptr lat
static const SGPropertyNode_ptr lat
= fgGetNode("/sim/input/click/latitude-deg", true);
static SGPropertyNode_ptr elev_m
static const SGPropertyNode_ptr elev_m
= fgGetNode("/sim/input/click/elevation-m", true);
static SGPropertyNode_ptr elev_ft
static const SGPropertyNode_ptr elev_ft
= fgGetNode("/sim/input/click/elevation-ft", true);
lon->setDoubleValue(geod.lon() * SGD_RADIANS_TO_DEGREES);