From: <hik...@us...> - 2011-06-27 10:44:28
|
Revision: 9105 http://supertuxkart.svn.sourceforge.net/supertuxkart/?rev=9105&view=rev Author: hikerstk Date: 2011-06-27 10:44:22 +0000 (Mon, 27 Jun 2011) Log Message: ----------- Added assert to make sure the lod node is used correctly. Modified Paths: -------------- main/trunk/src/graphics/lod_node.cpp Modified: main/trunk/src/graphics/lod_node.cpp =================================================================== --- main/trunk/src/graphics/lod_node.cpp 2011-06-27 01:03:53 UTC (rev 9104) +++ main/trunk/src/graphics/lod_node.cpp 2011-06-27 10:44:22 UTC (rev 9105) @@ -86,6 +86,7 @@ // and the location is disapparition needs to be deterministic if (m_detail.size() > 0) { + assert(m_detail.back()<level*level); m_detail[m_detail.size() - 1] += (int)(((rand()%1000)-500)/500.0f*(m_detail[m_detail.size() - 1]*0.2f)); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |