Skip to content

Commit ba31afa

Browse files
committed
tweak: Add CRC flags
1 parent f5f9e77 commit ba31afa

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
@@ -587,7 +587,9 @@ class ChinookCombatDropState : public State
587587
Object* rappeller = getPotentialRappeller(obj);
588588
if (rappeller != NULL)
589589
{
590+
#if !RETAIL_COMPATIBLE_CRC
590591
rappeller->setStatus(MAKE_OBJECT_STATUS_MASK(OBJECT_STATUS_IS_USING_ABILITY));
592+
#endif
591593

592594
ExitInterface *exitInterface = obj->getObjectExitInterface();
593595
ExitDoorType exitDoor = exitInterface ? exitInterface->reserveDoorForExit(rappeller->getTemplate(), rappeller) : DOOR_NONE_AVAILABLE;
@@ -600,7 +602,9 @@ class ChinookCombatDropState : public State
600602
DEBUG_CRASH(("rappeller is not free to exit... what?"));
601603
}
602604

605+
#if !RETAIL_COMPATIBLE_CRC
603606
rappeller->clearStatus(MAKE_OBJECT_STATUS_MASK(OBJECT_STATUS_IS_USING_ABILITY));
607+
#endif
604608
rappeller->setTransformMatrix(&it->dropStartMtx);
605609

606610
AIUpdateInterface* rappellerAI = rappeller ? rappeller->getAIUpdateInterface() : NULL;

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,9 @@ class ChinookCombatDropState : public State
588588
Object* rappeller = getPotentialRappeller(obj);
589589
if (rappeller != NULL)
590590
{
591+
#if !RETAIL_COMPATIBLE_CRC
591592
rappeller->setStatus(MAKE_OBJECT_STATUS_MASK(OBJECT_STATUS_IS_USING_ABILITY));
593+
#endif
592594

593595
ExitInterface *exitInterface = obj->getObjectExitInterface();
594596
ExitDoorType exitDoor = exitInterface ? exitInterface->reserveDoorForExit(rappeller->getTemplate(), rappeller) : DOOR_NONE_AVAILABLE;
@@ -601,7 +603,9 @@ class ChinookCombatDropState : public State
601603
DEBUG_CRASH(("rappeller is not free to exit... what?"));
602604
}
603605

606+
#if !RETAIL_COMPATIBLE_CRC
604607
rappeller->clearStatus(MAKE_OBJECT_STATUS_MASK(OBJECT_STATUS_IS_USING_ABILITY));
608+
#endif
605609
rappeller->setTransformMatrix(&it->dropStartMtx);
606610

607611
AIUpdateInterface* rappellerAI = rappeller ? rappeller->getAIUpdateInterface() : NULL;

0 commit comments

Comments
 (0)