Skip to content
Open
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
4 changes: 4 additions & 0 deletions Generals/Code/GameEngine/Source/GameLogic/AI/AIGroup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2112,10 +2112,14 @@ void AIGroup::groupAttackObjectPrivate( Bool forced, Object *victim, Int maxShot
for( i = m_memberList.begin(); i != m_memberList.end(); ++i ) {
Real dx, dy;
Coord3D unitPos = *((*i)->getPosition());
#if RETAIL_COMPATIBLE_CRC
// TheSuperHackers @bugfix Stubbjax 03/08/2025 This logic block erroneously prevents the
// occupants of DISABLED_HELD units (e.g. undead Battle Buses) from responding to attack commands.
if ((*i)->isDisabledByType( DISABLED_HELD ) )
{
continue; // don't bother telling the occupants to move.
}
#endif
dx = unitPos.x - victimPos.x;
dy = unitPos.y - victimPos.y;
iter->insert((*i), dx*dx+dy*dy);
Expand Down
4 changes: 4 additions & 0 deletions GeneralsMD/Code/GameEngine/Source/GameLogic/AI/AIGroup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2175,10 +2175,14 @@ void AIGroup::groupAttackObjectPrivate( Bool forced, Object *victim, Int maxShot
for( i = m_memberList.begin(); i != m_memberList.end(); ++i ) {
Real dx, dy;
Coord3D unitPos = *((*i)->getPosition());
#if RETAIL_COMPATIBLE_CRC
// TheSuperHackers @bugfix Stubbjax 03/08/2025 This logic block erroneously prevents the
// occupants of DISABLED_HELD units (e.g. undead Battle Buses) from responding to attack commands.
if ((*i)->isDisabledByType( DISABLED_HELD ) )
{
continue; // don't bother telling the occupants to move.
}
#endif
dx = unitPos.x - victimPos.x;
dy = unitPos.y - victimPos.y;
iter->insert((*i), dx*dx+dy*dy);
Expand Down
Loading