1
0
Fork 0

Oops a previous change (thought to be harmless) turned out to be harmful.

This could cause tile edges to no longer match up becuase this routine would
adjust node elevations which it shouldn't have.  Hopefully this change fixes
the problem.
This commit is contained in:
curt 2003-09-03 22:12:45 +00:00
parent b3e0d4b5f3
commit 400db7c3a9

View file

@ -50,7 +50,7 @@ int TGTriNodes::unique_add( const Point3D& p ) {
// cout << "found an existing match!" << endl; // cout << "found an existing match!" << endl;
// update elevation if new point has better info // update elevation if new point has better info
if ( p.z() > current->z() ) { if ( current->z() < -9000 ) {
current->setz( p.z() ); current->setz( p.z() );
} }
@ -120,7 +120,7 @@ int TGTriNodes::course_add( const Point3D& p ) {
// cout << "found an existing match!" << endl; // cout << "found an existing match!" << endl;
// update elevation if new point has better info // update elevation if new point has better info
if ( p.z() > current->z() ) { if ( current->z() < -9000 ) {
current->setz( p.z() ); current->setz( p.z() );
} }