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
Original file line number Diff line number Diff line change
Expand Up @@ -1123,8 +1123,14 @@ void ChinookAIUpdate::privateCombatDrop( Object* target, const Coord3D& pos, Com
//-------------------------------------------------------------------------------------------------
void ChinookAIUpdate::aiDoCommand(const AICommandParms* parms)
{
#if RETAIL_COMPATIBLE_CRC
// this gets reset every time a command is issued.
setAirfieldForHealing(INVALID_ID);
#else
// Don't leave healing state for evacuation commands
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TheSuperHackers @bugfix

if (parms->m_cmd != AICMD_EVACUATE && parms->m_cmd != AICMD_EXIT)
setAirfieldForHealing(INVALID_ID);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It may be better to combine this call with the switch case down below instead. Or is there a reason we cannot do that? The passItThru thing below is also weird.

#endif

if (!isAllowedToRespondToAiCommands(parms))
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1258,8 +1258,14 @@ void ChinookAIUpdate::privateCombatDrop( Object* target, const Coord3D& pos, Com
//-------------------------------------------------------------------------------------------------
void ChinookAIUpdate::aiDoCommand(const AICommandParms* parms)
{
#if RETAIL_COMPATIBLE_CRC
// this gets reset every time a command is issued.
setAirfieldForHealing(INVALID_ID);
#else
// Don't leave healing state for evacuation commands
if (parms->m_cmd != AICMD_EVACUATE && parms->m_cmd != AICMD_EXIT)
setAirfieldForHealing(INVALID_ID);
#endif

if (!isAllowedToRespondToAiCommands(parms))
return;
Expand Down
Loading