]> git.mxchange.org Git - flightgear.git/commitdiff
Fix wxradar to use path resolution
authorThorsten Brehm <brehm@patagonia.southamerica>
Fri, 1 Oct 2010 22:40:24 +0000 (00:40 +0200)
committerThorsten Brehm <brehm@patagonia.southamerica>
Fri, 1 Oct 2010 22:40:24 +0000 (00:40 +0200)
make it work with the new "multiple aircraft dir" feature

src/Instrumentation/wxradar.cxx

index f32e12605445cd492fa46777bd58135892de2461..e8619dec65cc126dbecbf1ea74d79a23925a7b62 100644 (file)
@@ -122,10 +122,9 @@ wxRadarBg::init ()
         "Aircraft/Instruments/Textures/od_wxradar.rgb");
     _resultTexture = FGTextureManager::createTexture(_texture_path.c_str(), false);
 
-    SGPath tpath(globals->get_fg_root());
     string path = _Instrument->getStringValue("echo-texture-path",
         "Aircraft/Instruments/Textures/wxecho.rgb");
-    tpath.append(path);
+    SGPath tpath = globals->resolve_aircraft_path(path);
 
     // no mipmap or else alpha will mix with pixels on the border of shapes, ruining the effect
     _wxEcho = SGLoadTexture2D(tpath, false, false);