Skip to content

Commit e62eaa2

Browse files
committed
docs: Add comments
1 parent 002d5c1 commit e62eaa2

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6157,6 +6157,8 @@ StateReturnType AIEnterState::update()
61576157
#if RETAIL_COMPATIBLE_CRC
61586158
if (code == STATE_SUCCESS && goal->isAboveTerrain() && !obj->isAboveTerrain())
61596159
#else
6160+
// TheSuperHackers @bugfix Stubbjax 05/11/2025 Check for vertical overlap when entering containers.
6161+
// This prevents levitating or airborne units from entering containers they are not actually touching.
61606162
if (code == STATE_SUCCESS && !hasVerticalOverlap(goal, obj))
61616163
#endif
61626164
{

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6369,6 +6369,8 @@ StateReturnType AIEnterState::update()
63696369
#if RETAIL_COMPATIBLE_CRC
63706370
if (code == STATE_SUCCESS && goal->isAboveTerrain() && !obj->isAboveTerrain())
63716371
#else
6372+
// TheSuperHackers @bugfix Stubbjax 05/11/2025 Check for vertical overlap when entering containers.
6373+
// This prevents levitating or airborne units from entering containers they are not actually touching.
63726374
if (code == STATE_SUCCESS && !hasVerticalOverlap(goal, obj))
63736375
#endif
63746376
{

0 commit comments

Comments
 (0)