From 4914cb0645ad9fb0d7bd2b85f65154a147145bd5 Mon Sep 17 00:00:00 2001 From: James Turner Date: Thu, 27 Oct 2011 17:53:18 +0100 Subject: [PATCH] Fix skipping of files when scanning polygons, to match previous behaviour. --- src/BuildTiles/Main/main.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/BuildTiles/Main/main.cxx b/src/BuildTiles/Main/main.cxx index bfb48563..6b2cfa9a 100644 --- a/src/BuildTiles/Main/main.cxx +++ b/src/BuildTiles/Main/main.cxx @@ -89,8 +89,7 @@ static int actual_load_polys( const SGPath& dir, TGConstruct& c, TGClipper& clipper ) { int counter = 0; - // string base = c.get_bucket().gen_base_path(); - //string tile_str = c.get_bucket().gen_index_str(); + string tile_str = c.get_bucket().gen_index_str(); simgear::Dir d(dir); if (!d.exists()) { @@ -99,6 +98,10 @@ static int actual_load_polys( const SGPath& dir, } BOOST_FOREACH(const SGPath& p, d.children(simgear::Dir::TYPE_FILE)) { + if (p.file_base() != tile_str) { + continue; + } + string lext = p.complete_lower_extension(); if ((lext == "arr") || (lext == "arr.gz") || (lext == "btg.gz") || (lext == "fit") || (lext == "fit.gz") || (lext == "ind"))