Fixed a bug on the iso map.

This commit is contained in:
spartanj
2010-06-28 03:29:03 -03:00
parent b6502cd856
commit 4b87cdf19c

View File

@@ -277,8 +277,6 @@ void cIsoMap::SetJointHeight( const eeUint& MapTileX, const eeUint& MapTileY, co
}
break;
}
T->Box = Quad2toAABB( T->Q );
}
void cIsoMap::VertexChangeHeight( const eeInt& MapTileX, const eeInt& MapTileY, const eeUint& JointNum, const eeFloat& Height, const eeFloat& NewJointHeight, const bool& JointUp ) {
@@ -287,6 +285,7 @@ void cIsoMap::VertexChangeHeight( const eeInt& MapTileX, const eeInt& MapTileY,
if ( ( JointUp && T->Q.V[JointNum].y >= NewJointHeight ) || ( !JointUp && T->Q.V[JointNum].y <= NewJointHeight ) ) {
T->Q.V[JointNum].y += Height;
T->Box = Quad2toAABB( T->Q );
}
}
}