From: <ma...@us...> - 2011-05-24 18:02:42
|
Revision: 7314 http://planeshift.svn.sourceforge.net/planeshift/?rev=7314&view=rev Author: magodra Date: 2011-05-24 18:02:36 +0000 (Tue, 24 May 2011) Log Message: ----------- - Fixed index error in terrain generation. Modified Paths: -------------- trunk/src/plugins/common/recast/celnavmesh.cpp Modified: trunk/src/plugins/common/recast/celnavmesh.cpp =================================================================== --- trunk/src/plugins/common/recast/celnavmesh.cpp 2011-05-24 17:46:32 UTC (rev 7313) +++ trunk/src/plugins/common/recast/celnavmesh.cpp 2011-05-24 18:02:36 UTC (rev 7314) @@ -2032,9 +2032,9 @@ float scale_z = cell->GetSize().z / (height - 1); // tesselate and clip cell - for(int y = 0; y < height; ++y) + for(int y = 0; y < (height-2); ++y) { - for(int x = 0; x < width; ++x) + for(int x = 0; x < (width-2); ++x) { float xbase = x*scale_x+offset_x; float ybase = (height - 1 - y)*scale_z+offset_y; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |