Skip to content

Commit 749e6e0

Browse files
committed
Tweaked comment.
1 parent d0cee67 commit 749e6e0

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Core/GameEngine/Source/GameLogic/AI/AIPathfind.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4163,16 +4163,15 @@ void Pathfinder::classifyFence( Object *obj, Bool insert )
41634163
#if RETAIL_COMPATIBLE_CRC
41644164
//CRCDEBUG_LOG(("Pathfinder::classifyFence - (%d,%d)", cellBounds.hi.x, cellBounds.hi.y));
41654165

4166-
// In retail, the values in the stack often look like this. We set them
4167-
// to reduce the likelihood of mismatch.
4166+
// In retail the values on the stack are often either 0 or larger than the map size.
4167+
// We initialize them to reduce the likelihood of a mismatch.
41684168
if (m_classifyFenceZeroInit)
41694169
{
41704170
cellBounds.hi.x = 0;
41714171
cellBounds.hi.y = 0;
41724172
}
41734173
else
41744174
{
4175-
// the value just needs to be larger than the width and height of m_map
41764175
cellBounds.hi.x = 1000000;
41774176
cellBounds.hi.y = 1000000;
41784177
}

0 commit comments

Comments
 (0)