make it const
This commit is contained in:
parent
7a27d247d4
commit
6de1f56f2c
1 changed files with 4 additions and 4 deletions
|
@ -324,13 +324,13 @@ FGInput::doMouseClick (int b, int updown, int x, int y)
|
||||||
|
|
||||||
Point3D geod = sgCartToGeod(Point3D(hit[0], hit[1], hit[2]));
|
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);
|
= fgGetNode("/sim/input/click/longitude-deg", true);
|
||||||
static SGPropertyNode_ptr lat
|
static const SGPropertyNode_ptr lat
|
||||||
= fgGetNode("/sim/input/click/latitude-deg", true);
|
= 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);
|
= 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);
|
= fgGetNode("/sim/input/click/elevation-ft", true);
|
||||||
|
|
||||||
lon->setDoubleValue(geod.lon() * SGD_RADIANS_TO_DEGREES);
|
lon->setDoubleValue(geod.lon() * SGD_RADIANS_TO_DEGREES);
|
||||||
|
|
Loading…
Add table
Reference in a new issue