Skip to content

Commit b009261

Browse files
authored
bugfix(pathfinder): Fix some pinched cells being changed to impassable cells in internal_classifyObjectFootprint() (TheSuperHackers#2222)
1 parent 002b8cb commit b009261

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

Generals/Code/GameEngine/Source/GameLogic/AI/AIPathfind.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4093,6 +4093,7 @@ void Pathfinder::internal_classifyObjectFootprint( Object *obj, Bool insert )
40934093
}
40944094
}
40954095

4096+
#if RETAIL_COMPATIBLE_PATHFINDING
40964097
for( j=cellBounds.lo.y; j<=cellBounds.hi.y; j++ )
40974098
{
40984099
for( i=cellBounds.lo.x; i<=cellBounds.hi.x; i++ )
@@ -4103,6 +4104,7 @@ void Pathfinder::internal_classifyObjectFootprint( Object *obj, Bool insert )
41034104
}
41044105
}
41054106
}
4107+
#endif
41064108

41074109
// Expand building bounds 1 cell.
41084110
for( j=cellBounds.lo.y; j<=cellBounds.hi.y; j++ )

GeneralsMD/Code/GameEngine/Source/GameLogic/AI/AIPathfind.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4373,6 +4373,7 @@ void Pathfinder::internal_classifyObjectFootprint( Object *obj, Bool insert )
43734373
}
43744374
}
43754375

4376+
#if RETAIL_COMPATIBLE_PATHFINDING
43764377
for( j=cellBounds.lo.y; j<=cellBounds.hi.y; j++ )
43774378
{
43784379
for( i=cellBounds.lo.x; i<=cellBounds.hi.x; i++ )
@@ -4383,6 +4384,7 @@ void Pathfinder::internal_classifyObjectFootprint( Object *obj, Bool insert )
43834384
}
43844385
}
43854386
}
4387+
#endif
43864388

43874389
// Expand building bounds 1 cell.
43884390
for( j=cellBounds.lo.y; j<=cellBounds.hi.y; j++ )

0 commit comments

Comments
 (0)