File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
GeneralsMD/Code/GameEngine/Source/GameLogic/AI
Generals/Code/GameEngine/Source/GameLogic/AI Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments