Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6649,7 +6649,7 @@ Path *Pathfinder::findGroundPath( const Coord3D *from,
const Int adjacent[5] = {0, 1, 2, 3, 0};
Bool neighborFlags[8] = {false, false, false, false, false, false, false};

UnsignedInt newCostSoFar;
UnsignedInt newCostSoFar = 0;

for( int i=0; i<numNeighbors; i++ )
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4031,6 +4031,8 @@ void Pathfinder::classifyFence( Object *obj, Bool insert )
IRegion2D cellBounds;
cellBounds.lo.x = REAL_TO_INT_FLOOR((pos->x + 0.5f)/PATHFIND_CELL_SIZE_F);
cellBounds.lo.y = REAL_TO_INT_FLOOR((pos->y + 0.5f)/PATHFIND_CELL_SIZE_F);
cellBounds.hi.x = REAL_TO_INT_CEIL((pos->x + 0.5f)/PATHFIND_CELL_SIZE_F);
cellBounds.hi.y = REAL_TO_INT_CEIL((pos->y + 0.5f)/PATHFIND_CELL_SIZE_F);
Comment thread
Mauller marked this conversation as resolved.
Outdated
Bool didAnything = false;

for (Int iy = 0; iy < numStepsY; ++iy, tl_x += ydx, tl_y += ydy)
Expand Down Expand Up @@ -7190,7 +7192,7 @@ Path *Pathfinder::findGroundPath( const Coord3D *from,
const Int adjacent[5] = {0, 1, 2, 3, 0};
Bool neighborFlags[8] = {false, false, false, false, false, false, false};

UnsignedInt newCostSoFar;
UnsignedInt newCostSoFar = 0;
Comment thread
Mauller marked this conversation as resolved.
Outdated

for( int i=0; i<numNeighbors; i++ )
{
Expand Down