Fixed compiler warning.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7861 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
400f5edc19
commit
765905b514
@ -42,7 +42,8 @@ void LODNode::OnRegisterSceneNode()
|
||||
scene::ICameraSceneNode* curr_cam = irr_driver->getSceneManager()->getActiveCamera();
|
||||
|
||||
// Assumes all children are at the same location
|
||||
const int dist = m_nodes[0]->getPosition().getDistanceFromSQ( curr_cam->getPosition() );
|
||||
const int dist =
|
||||
(int)(m_nodes[0]->getPosition().getDistanceFromSQ( curr_cam->getPosition() ));
|
||||
|
||||
for (unsigned int n=0; n<m_detail.size(); n++)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user