Skip to content

Commit d61ce1f

Browse files
authored
bugfix(collide): Prevent retail CRC mismatch from changes to Sabotage Crate Collide (#1571)
1 parent 06c6b3b commit d61ce1f

8 files changed

+16
-0
lines changed

GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Collide/CrateCollide/SabotageCommandCenterCrateCollide.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,13 @@ Bool SabotageCommandCenterCrateCollide::isValidToExecute( const Object *other )
9797
return FALSE;
9898
}
9999

100+
#if !RETAIL_COMPATIBLE_CRC
100101
if (other->getStatusBits().testForAny(MAKE_OBJECT_STATUS_MASK2(OBJECT_STATUS_UNDER_CONSTRUCTION, OBJECT_STATUS_SOLD)))
101102
{
102103
// TheSuperHackers @bugfix Stubbjax 03/08/2025 Can't enter something being sold or under construction.
103104
return FALSE;
104105
}
106+
#endif
105107

106108
Relationship r = getObject()->getRelationship( other );
107109
if( r != ENEMIES )

GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Collide/CrateCollide/SabotageFakeBuilding.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,13 @@ Bool SabotageFakeBuildingCrateCollide::isValidToExecute( const Object *other ) c
9292
return FALSE;
9393
}
9494

95+
#if !RETAIL_COMPATIBLE_CRC
9596
if (other->getStatusBits().testForAny(MAKE_OBJECT_STATUS_MASK2(OBJECT_STATUS_UNDER_CONSTRUCTION, OBJECT_STATUS_SOLD)))
9697
{
9798
// TheSuperHackers @bugfix Stubbjax 03/08/2025 Can't enter something being sold or under construction.
9899
return FALSE;
99100
}
101+
#endif
100102

101103
Relationship r = getObject()->getRelationship( other );
102104
if( r != ENEMIES )

GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Collide/CrateCollide/SabotageInternetCenterCrateCollide.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,13 @@ Bool SabotageInternetCenterCrateCollide::isValidToExecute( const Object *other )
9898
return FALSE;
9999
}
100100

101+
#if !RETAIL_COMPATIBLE_CRC
101102
if (other->getStatusBits().testForAny(MAKE_OBJECT_STATUS_MASK2(OBJECT_STATUS_UNDER_CONSTRUCTION, OBJECT_STATUS_SOLD)))
102103
{
103104
// TheSuperHackers @bugfix Stubbjax 03/08/2025 Can't enter something being sold or under construction.
104105
return FALSE;
105106
}
107+
#endif
106108

107109
Relationship r = getObject()->getRelationship( other );
108110
if( r != ENEMIES )

GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Collide/CrateCollide/SabotageMilitaryFactoryCrateCollide.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,13 @@ Bool SabotageMilitaryFactoryCrateCollide::isValidToExecute( const Object *other
102102
return FALSE;
103103
}
104104

105+
#if !RETAIL_COMPATIBLE_CRC
105106
if (other->getStatusBits().testForAny(MAKE_OBJECT_STATUS_MASK2(OBJECT_STATUS_UNDER_CONSTRUCTION, OBJECT_STATUS_SOLD)))
106107
{
107108
// TheSuperHackers @bugfix Stubbjax 03/08/2025 Can't enter something being sold or under construction.
108109
return FALSE;
109110
}
111+
#endif
110112

111113
Relationship r = getObject()->getRelationship( other );
112114
if( r != ENEMIES )

GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Collide/CrateCollide/SabotagePowerPlantCrateCollide.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,13 @@ Bool SabotagePowerPlantCrateCollide::isValidToExecute( const Object *other ) con
9292
return FALSE;
9393
}
9494

95+
#if !RETAIL_COMPATIBLE_CRC
9596
if (other->getStatusBits().testForAny(MAKE_OBJECT_STATUS_MASK2(OBJECT_STATUS_UNDER_CONSTRUCTION, OBJECT_STATUS_SOLD)))
9697
{
9798
// TheSuperHackers @bugfix Stubbjax 03/08/2025 Can't enter something being sold or under construction.
9899
return FALSE;
99100
}
101+
#endif
100102

101103
Relationship r = getObject()->getRelationship( other );
102104
if( r != ENEMIES )

GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Collide/CrateCollide/SabotageSuperweaponCrateCollide.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,13 @@ Bool SabotageSuperweaponCrateCollide::isValidToExecute( const Object *other ) co
9797
return FALSE;
9898
}
9999

100+
#if !RETAIL_COMPATIBLE_CRC
100101
if (other->getStatusBits().testForAny(MAKE_OBJECT_STATUS_MASK2(OBJECT_STATUS_UNDER_CONSTRUCTION, OBJECT_STATUS_SOLD)))
101102
{
102103
// TheSuperHackers @bugfix Stubbjax 03/08/2025 Can't enter something being sold or under construction.
103104
return FALSE;
104105
}
106+
#endif
105107

106108
Relationship r = getObject()->getRelationship( other );
107109
if( r != ENEMIES )

GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Collide/CrateCollide/SabotageSupplyCenterCrateCollide.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,13 @@ Bool SabotageSupplyCenterCrateCollide::isValidToExecute( const Object *other ) c
9696
return FALSE;
9797
}
9898

99+
#if !RETAIL_COMPATIBLE_CRC
99100
if (other->getStatusBits().testForAny(MAKE_OBJECT_STATUS_MASK2(OBJECT_STATUS_UNDER_CONSTRUCTION, OBJECT_STATUS_SOLD)))
100101
{
101102
// TheSuperHackers @bugfix Stubbjax 03/08/2025 Can't enter something being sold or under construction.
102103
return FALSE;
103104
}
105+
#endif
104106

105107
Relationship r = getObject()->getRelationship( other );
106108
if( r != ENEMIES )

GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Collide/CrateCollide/SabotageSupplyDropzoneCrateCollide.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,13 @@ Bool SabotageSupplyDropzoneCrateCollide::isValidToExecute( const Object *other )
9696
return FALSE;
9797
}
9898

99+
#if !RETAIL_COMPATIBLE_CRC
99100
if (other->getStatusBits().testForAny(MAKE_OBJECT_STATUS_MASK2(OBJECT_STATUS_UNDER_CONSTRUCTION, OBJECT_STATUS_SOLD)))
100101
{
101102
// TheSuperHackers @bugfix Stubbjax 03/08/2025 Can't enter something being sold or under construction.
102103
return FALSE;
103104
}
105+
#endif
104106

105107
Relationship r = getObject()->getRelationship( other );
106108
if( r != ENEMIES )

0 commit comments

Comments
 (0)