aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastian Valle <s.v.h21@hotmail.com>2013-10-06 15:29:42 -0500
committerSebastian Valle <s.v.h21@hotmail.com>2013-10-06 15:30:56 -0500
commite7f035fdd3aafd33383a162a8c634f3837358ffa (patch)
treeb2d855ba64fe5ad9e80e00c892ceaa84020fc6a9 /src
parent7d6a47c128527b3ab5e7ebeae6e8c1d5e06f0c7a (diff)
Tools/MeshExtractor: Fixed a logic mistake.
Diffstat (limited to 'src')
-rw-r--r--src/tools/mesh_extractor/ContinentBuilder.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tools/mesh_extractor/ContinentBuilder.cpp b/src/tools/mesh_extractor/ContinentBuilder.cpp
index c85e4df8d0e..4cb0a676e79 100644
--- a/src/tools/mesh_extractor/ContinentBuilder.cpp
+++ b/src/tools/mesh_extractor/ContinentBuilder.cpp
@@ -72,7 +72,7 @@ void ContinentBuilder::getTileBounds(uint32 tileX, uint32 tileY, float* verts, i
rcCalcBounds(verts, vertCount, bmin, bmax);
else
{
- bmin[1] = FLT_MIN;
+ bmin[1] = -FLT_MAX;
bmax[1] = FLT_MAX;
}
@@ -185,12 +185,12 @@ void ContinentBuilder::Build()
}
}
- Cache->Clear();
-
// Free memory
for (std::vector<BuilderThread*>::iterator _th = Threads.begin(); _th != Threads.end(); ++_th)
{
(*_th)->wait();
delete *_th;
}
+
+ Cache->Clear();
}