Skip to content

Commit ee83015

Browse files
committed
chore: Update compilation conditions
1 parent af1f72f commit ee83015

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

GeneralsMD/Code/GameEngine/Source/GameClient/SelectionInfo.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,11 +349,13 @@ Bool addDrawableToList( Drawable *draw, void *userData )
349349
if (!pds->drawableListToFill)
350350
return FALSE;
351351

352+
#if !RTS_GENERALS || !RETAIL_COMPATIBLE_BUG
352353
if (draw->getFullyObscuredByShroud())
353354
return FALSE;
354355

355356
if (draw->isDrawableEffectivelyHidden())
356357
return FALSE;
358+
#endif
357359

358360
if (!draw->getTemplate()->isAnyKindOf(pds->kindofsToMatch))
359361
return FALSE;
@@ -374,7 +376,7 @@ Bool addDrawableToList( Drawable *draw, void *userData )
374376
return FALSE;
375377
}
376378

377-
#if RETAIL_COMPATIBLE_BUG
379+
#if !RTS_GENERALS && RETAIL_COMPATIBLE_BUG
378380
// TheSuperHackers @info
379381
// In retail, hidden objects such as passengers are included here when drag-selected, which causes
380382
// enemy selection logic to exit early (only 1 enemy unit can be selected at a time). Some players

0 commit comments

Comments
 (0)