Correct spacing between buildings.

This commit is contained in:
Stuart Buchanan 2012-02-26 22:38:04 +00:00
parent 124db3da8e
commit 4fae9039c1

View 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) {