Skip to content

Commit c8f3d94

Browse files
committed
chore: Update condition from RETAIL_COMPATIBLE_CRC to RETAIL_COMPATIBLE_BUG
1 parent 2518c04 commit c8f3d94

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

Core/GameEngine/Include/Common/GameDefines.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
// Note: Retail compatibility must not be broken before this project officially does.
2222
// Use RETAIL_COMPATIBLE_CRC and RETAIL_COMPATIBLE_XFER_SAVE to guard breaking changes.
2323

24+
#ifndef RETAIL_COMPATIBLE_BUG
25+
#define RETAIL_COMPATIBLE_BUG (1) // Retain bugs present in retail Generals 1.08 and Zero Hour 1.04
26+
#endif
27+
2428
#ifndef RETAIL_COMPATIBLE_CRC
2529
#define RETAIL_COMPATIBLE_CRC (1) // Game is expected to be CRC compatible with retail Generals 1.08, Zero Hour 1.04
2630
#endif

Generals/Code/GameEngine/Source/GameLogic/Object/Body/ActiveBody.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ void ActiveBody::attemptHealing( DamageInfo *damageInfo )
593593
//(object pointer loses scope as soon as atteptdamage's caller ends)
594594
m_lastDamageInfo = *damageInfo;
595595
m_lastDamageCleared = false;
596-
#if RETAIL_COMPATIBLE_CRC
596+
#if RETAIL_COMPATIBLE_BUG
597597
m_lastDamageTimestamp = TheGameLogic->getFrame();
598598
#endif
599599
m_lastHealingTimestamp = TheGameLogic->getFrame();

GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Body/ActiveBody.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,7 @@ void ActiveBody::attemptHealing( DamageInfo *damageInfo )
835835
//(object pointer loses scope as soon as atteptdamage's caller ends)
836836
m_lastDamageInfo = *damageInfo;
837837
m_lastDamageCleared = false;
838-
#if RETAIL_COMPATIBLE_CRC
838+
#if RETAIL_COMPATIBLE_BUG
839839
m_lastDamageTimestamp = TheGameLogic->getFrame();
840840
#endif
841841
m_lastHealingTimestamp = TheGameLogic->getFrame();

GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Update/StealthUpdate.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ Bool StealthUpdate::allowedToStealth( Object *stealthOwner ) const
317317

318318
if( flags & STEALTH_NOT_WHILE_TAKING_DAMAGE && self->getBodyModule()->getLastDamageTimestamp() >= now - 1 )
319319
{
320-
#if RETAIL_COMPATIBLE_CRC
320+
#if RETAIL_COMPATIBLE_BUG
321321
//Only if it's not healing damage.
322322
if( self->getBodyModule()->getLastDamageInfo()->in.m_damageType != DAMAGE_HEALING )
323323
#endif

0 commit comments

Comments
 (0)