Skip to content

Commit efcf500

Browse files
committed
bugfix: Chinooks and Helixes now correctly wait for their passengers to disembark
1 parent 5b5a973 commit efcf500

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Generals/Code/GameEngine/Source/GameLogic/Object/Update/AIUpdate/ChinookAIUpdate.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1166,7 +1166,11 @@ void ChinookAIUpdate::aiDoCommand(const AICommandParms* parms)
11661166
setMyState(TAKING_OFF, NULL, NULL, CMD_FROM_AI);
11671167
passItThru = false;
11681168
}
1169+
#if RETAIL_COMPATIBLE_CRC
11691170
else
1171+
#else
1172+
else if (getObject()->getContain() && getObject()->getContain()->hasObjectsWantingToEnterOrExit())
1173+
#endif
11701174
{
11711175
// do this INSTEAD of the standard stuff
11721176
setMyState(

GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Update/AIUpdate/ChinookAIUpdate.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1301,7 +1301,11 @@ void ChinookAIUpdate::aiDoCommand(const AICommandParms* parms)
13011301
setMyState(TAKING_OFF, NULL, NULL, CMD_FROM_AI);
13021302
passItThru = false;
13031303
}
1304+
#if RETAIL_COMPATIBLE_CRC
13041305
else
1306+
#else
1307+
else if (getObject()->getContain() && getObject()->getContain()->hasObjectsWantingToEnterOrExit())
1308+
#endif
13051309
{
13061310
// do this INSTEAD of the standard stuff
13071311
setMyState(

0 commit comments

Comments
 (0)