From 4b87cdf19c77e4ffeecfc5fcee2e77127b82b5c7 Mon Sep 17 00:00:00 2001 From: spartanj Date: Mon, 28 Jun 2010 03:29:03 -0300 Subject: [PATCH] Fixed a bug on the iso map. --- src/gaming/cisomap.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gaming/cisomap.cpp b/src/gaming/cisomap.cpp index 1b6103da1..828c22994 100755 --- a/src/gaming/cisomap.cpp +++ b/src/gaming/cisomap.cpp @@ -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 ); } } }