]> git.mxchange.org Git - simgear.git/commitdiff
Correct spacing between buildings.
authorStuart Buchanan <stuart_d_buchanan@yahoo.co.uk>
Sun, 26 Feb 2012 22:38:04 +0000 (22:38 +0000)
committerStuart Buchanan <stuart_d_buchanan@yahoo.co.uk>
Sun, 26 Feb 2012 22:38:04 +0000 (22:38 +0000)
simgear/scene/tgdb/obj.cxx

index 235b8f6234cfd5f8bd68f1d4b6527b7a1a801402..d6c6369546be6e9e0d4d9b792dc1fb8d664caa7e 100644 (file)
@@ -547,7 +547,7 @@ struct SGTileGeometryBin {
                 bool close = false;                
                 
                 for (unsigned i = 0; i < randomModels.getNumModels(); i++) {
-                  float spacing = std::max(randomModels.getMatModel(i).model->get_spacing_m(), object->get_spacing_m());
+                  float spacing = randomModels.getMatModel(i).model->get_spacing_m() + object->get_spacing_m();
                   spacing = spacing * spacing;
                   
                   if (distSqr(randomModels.getMatModel(i).position, l->first) < spacing) {