Skip to content

Commit fa83ef7

Browse files
committed
chore: Add retail compatible checks
1 parent 1ba188e commit fa83ef7

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Generals/Code/GameEngine/Source/Common/System/BuildAssistant.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -670,8 +670,10 @@ Bool BuildAssistant::isLocationClearOfObjects( const Coord3D *worldPos,
670670
MemoryPoolObjectHolder hold(iter);
671671
for( them = iter->first(); them; them = iter->next() )
672672
{
673+
#if !RETAIL_COMPATIBLE_CRC
673674
if (builderObject && them->getShroudedStatus(builderObject->getControllingPlayer()->getPlayerIndex()) >= OBJECTSHROUD_FOGGED)
674675
return false;
676+
#endif
675677

676678
// ignore any kind of class of objects that we will "remove" for building
677679
if( isRemovableForConstruction( them ) == TRUE )

GeneralsMD/Code/GameEngine/Source/Common/System/BuildAssistant.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -670,8 +670,10 @@ LegalBuildCode BuildAssistant::isLocationClearOfObjects( const Coord3D *worldPos
670670
MemoryPoolObjectHolder hold(iter);
671671
for( them = iter->first(); them; them = iter->next() )
672672
{
673+
#if !RETAIL_COMPATIBLE_CRC
673674
if (builderObject && them->getShroudedStatus(builderObject->getControllingPlayer()->getPlayerIndex()) >= OBJECTSHROUD_FOGGED)
674675
return LBC_SHROUD;
676+
#endif
675677

676678
Bool feedbackWithFailure = TRUE;
677679
Relationship rel = builderObject ? builderObject->getRelationship( them ) : NEUTRAL;

0 commit comments

Comments
 (0)