diff options
author | Dennis Peeten <dpeeten@onsneteindhoven.nl> | 2008-05-24 09:59:48 (GMT) |
---|---|---|
committer | Dennis Peeten <dpeeten@onsneteindhoven.nl> | 2008-05-24 09:59:48 (GMT) |
commit | f11312d1d84e102bb29a44dedce4c60a5ae25e56 (patch) | |
tree | ae9928f07d7a3fdafcf341d91ca57c17236ad80b /MatchBloxEngine/MatchBloxEngine/C_Box.cpp | |
parent | fbe326b9f9fc8f6d0e3034a81c2d8efcb2859ce2 (diff) | |
download | 2iv55-f11312d1d84e102bb29a44dedce4c60a5ae25e56.zip 2iv55-f11312d1d84e102bb29a44dedce4c60a5ae25e56.tar.gz 2iv55-f11312d1d84e102bb29a44dedce4c60a5ae25e56.tar.bz2 |
Diffstat (limited to 'MatchBloxEngine/MatchBloxEngine/C_Box.cpp')
-rw-r--r-- | MatchBloxEngine/MatchBloxEngine/C_Box.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MatchBloxEngine/MatchBloxEngine/C_Box.cpp b/MatchBloxEngine/MatchBloxEngine/C_Box.cpp index 9bde3ff..343ae98 100644 --- a/MatchBloxEngine/MatchBloxEngine/C_Box.cpp +++ b/MatchBloxEngine/MatchBloxEngine/C_Box.cpp @@ -20,7 +20,7 @@ C_Box::C_Box(const char *f_strFileName, //calculate the tile size (this should be the same //for all tile types) BoundingBox_t l_BBox = m_pTiles[0]->GetBoundingBox(); - m_dTileSize = l_BBox.m_dRight - l_BBox.m_dLeft; + m_dTileSize = l_BBox.m_Max.x - l_BBox.m_Min.x; //calculate the lower left tile position (in xz plane) m_LowLeftTilePos = Vect3D_t(-m_dTileSize * (double)(m_iTilesX-1)/2.0, |