From: Stuart Buchanan Date: Sun, 26 Feb 2012 22:38:04 +0000 (+0000) Subject: Correct spacing between buildings. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4fae9039c19fc0f3fc6bcfbfd3adb0c4c30c7666;p=simgear.git Correct spacing between buildings. --- diff --git a/simgear/scene/tgdb/obj.cxx b/simgear/scene/tgdb/obj.cxx index 235b8f62..d6c63695 100644 --- a/simgear/scene/tgdb/obj.cxx +++ b/simgear/scene/tgdb/obj.cxx @@ -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) {