*Massive cleanup redux.
--HG-- branch : trunk
This commit is contained in:
+2
-2
@@ -46,7 +46,7 @@ class Path
|
||||
float GetTotalLength(uint32 start, uint32 end) const
|
||||
{
|
||||
float len = 0, xd, yd, zd;
|
||||
for(unsigned int idx=start+1; idx < end; ++idx)
|
||||
for (unsigned int idx=start+1; idx < end; ++idx)
|
||||
{
|
||||
xd = i_nodes[ idx ].x - i_nodes[ idx-1 ].x;
|
||||
yd = i_nodes[ idx ].y - i_nodes[ idx-1 ].y;
|
||||
@@ -59,7 +59,7 @@ class Path
|
||||
float GetPassedLength(uint32 curnode, float x, float y, float z)
|
||||
{
|
||||
float len = 0, xd, yd, zd;
|
||||
for(unsigned int idx=1; idx < curnode; ++idx)
|
||||
for (unsigned int idx=1; idx < curnode; ++idx)
|
||||
{
|
||||
xd = i_nodes[ idx ].x - i_nodes[ idx-1 ].x;
|
||||
yd = i_nodes[ idx ].y - i_nodes[ idx-1 ].y;
|
||||
|
||||
Reference in New Issue
Block a user