Bugfix: dimension of kart were computed incorrectly, resulting in

the physics model having a wrong size.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2402 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2008-10-30 04:12:38 +00:00
parent 179f7331fe
commit c4e27f1a7a

View File

@ -153,7 +153,7 @@ void KartProperties::load(const std::string &filename, const std::string &node,
ssgStripify(m_model); ssgStripify(m_model);
Vec3 min, max; Vec3 min, max;
SSGHelp::MinMax(m_model, &min, &max); SSGHelp::MinMax(m_model, &min, &max);
m_kart_width = max.getX()-min.getY(); m_kart_width = max.getX()-min.getX();
m_kart_length = max.getY()-min.getY(); m_kart_length = max.getY()-min.getY();
m_kart_height = max.getZ()-min.getZ(); m_kart_height = max.getZ()-min.getZ();