Skip to content

Commit 6977bb1

Browse files
committed
chore: Apply fix to Generals
1 parent 835d9e7 commit 6977bb1

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,17 @@ Bool addDrawableToList( Drawable *draw, void *userData )
347347
if (!pds->drawableListToFill)
348348
return FALSE;
349349

350+
#if !RETAIL_COMPATIBLE_BUG
351+
// In retail, drag-selecting allows the player to select stealthed objects and objects through the
352+
// fog. Some players exploit this bug to determine where an opponent's units are and consider this
353+
// an important feature and an advanced skill to pull off, so we must leave the exploit.
354+
if (draw->getFullyObscuredByShroud())
355+
return FALSE;
356+
357+
if (draw->isDrawableEffectivelyHidden())
358+
return FALSE;
359+
#endif
360+
350361
if (!draw->getTemplate()->isAnyKindOf(pds->kindofsToMatch))
351362
return FALSE;
352363

0 commit comments

Comments
 (0)