On Mon, 2009-11-09 at 20:28 -0800, Statto Software wrote:
> I think I may have found the problem with the Center Runway texture not
> showing, but I'm not at all confident with my C++ skills, so someone will
> have to fix TerraGear for me.
>
> However, I've found this code in
> /terragear-cs/src/airports/GenAirports/rwy_*.cxx:
>
> int len = rwy_info.rwy_no.length();
> string letter = "";
> string rev_letter = "";
> for ( i = 0; i < len; ++i ) {
> string tmp = rwy_info.rwy_no.substr(i, 1);
> if ( tmp == "L" ) {
> letter = "L";
> rev_letter = "R";
> } else if ( tmp == "R" ) {
> letter = "R";
> rev_letter = "L";
> } else if ( tmp == "C" ) {
> letter == "C"; // should this be letter = "C";?
> rev_letter = "C";
> }
> }
>
> If my simple programming skills don't betray me, I //believe// letter == "C";
> does not actually set letter to equal C, which may be why these airports are
> being generated without the center runway texture.
>
> Cheers
> John
Looks reasonable to me. Are you actually building these airports? The
attached patch is untested...
Ron
diff --git a/src/Airports/GenAirports/rwy_nonprec.cxx b/src/Airports/GenAirports/rwy_nonprec.cxx
index 93110c6..7fe2d46 100644
--- a/src/Airports/GenAirports/rwy_nonprec.cxx
+++ b/src/Airports/GenAirports/rwy_nonprec.cxx
@@ -245,7 +245,7 @@ void gen_non_precision_rwy( const TGRunway& rwy_info,
letter = "R";
rev_letter = "L";
} else if ( tmp == "C" ) {
- letter = "C";
+ letter == "C";
rev_letter = "C";
}
}
diff --git a/src/Airports/GenAirports/rwy_prec.cxx b/src/Airports/GenAirports/rwy_prec.cxx
index a7952a0..ce5542e 100644
--- a/src/Airports/GenAirports/rwy_prec.cxx
+++ b/src/Airports/GenAirports/rwy_prec.cxx
@@ -249,7 +249,7 @@ void gen_precision_rwy( const TGRunway& rwy_info,
letter = "R";
rev_letter = "L";
} else if ( tmp == "C" ) {
- letter = "C";
+ letter == "C";
rev_letter = "C";
}
}
iff --git a/src/Airports/GenAirports/rwy_visual.cxx b/src/Airports/GenAirports/rwy_visual.cxx
index e0f9c9c..32f19eb 100644
--- a/src/Airports/GenAirports/rwy_visual.cxx
+++ b/src/Airports/GenAirports/rwy_visual.cxx
@@ -251,7 +251,7 @@ void gen_visual_rwy( const TGRunway& rwy_info,
letter = "R";
rev_letter = "L";
} else if ( tmp == "C" ) {
- letter = "C";
+ letter == "C";
rev_letter = "C";
}
}
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel