src/Airports/gnnode.cxx | 5 +++++ src/Airports/gnnode.hxx | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-)
Problem 1:
gnnode.hxx defines this constructor for FGTaxiNode:
FGTaxiNode(double, double, int);
What do these doubles and the int stand for?
Solution: Take a look at parking.cxx -> (lat, lon, index).
Problem 2:
gnnode.cxx does not define an implementation for this constructor.
Solution: This patch adds one which just initializes the three member
variables lat, lon, and index.
Index: src/Airports/gnnode.cxx
===================================================================
RCS file: /var/cvs/FlightGear-0.9/source/src/Airports/gnnode.cxx,v
retrieving revision 1.1
diff -u -p -r1.1 gnnode.cxx
--- src/Airports/gnnode.cxx 15 Jul 2007 14:08:32 -0000 1.1
+++ src/Airports/gnnode.cxx 21 Jul 2007 16:45:37 -0000
@@ -46,6 +46,11 @@ FGTaxiNode::FGTaxiNode()
{
}
+FGTaxiNode::FGTaxiNode(double lat, double lon, int index)
+ : lat(lat), lon(lon), index(index)
+{
+}
+
void FGTaxiNode::sortEndSegments(bool byLength)
{
if (byLength)
Index: src/Airports/gnnode.hxx
===================================================================
RCS file: /var/cvs/FlightGear-0.9/source/src/Airports/gnnode.hxx,v
retrieving revision 1.2
diff -u -p -r1.2 gnnode.hxx
--- src/Airports/gnnode.hxx 15 Jul 2007 14:08:32 -0000 1.2
+++ src/Airports/gnnode.hxx 21 Jul 2007 16:45:37 -0000
@@ -41,7 +41,7 @@ private:
public:
FGTaxiNode();
- FGTaxiNode(double, double, int);
+ FGTaxiNode(double lat, double lon, int index);
void setIndex(int idx) { index = idx;};
void setLatitude (double val) { lat = val;};
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________ Flightgear-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/flightgear-devel

