Skip to content

Commit 60f3003

Browse files
committed
docs: Add disguise condition description
1 parent c4fb4cd commit 60f3003

File tree

2 files changed

+6
-0
lines changed
  • GeneralsMD/Code/GameEngine/Source/GameLogic/Object
  • Generals/Code/GameEngine/Source/GameLogic/Object

2 files changed

+6
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1558,6 +1558,9 @@ Bool Object::isLogicallyVisible() const
15581558

15591559
const Object* obj = getOuterObject();
15601560

1561+
// Disguisers are always visible to all players, irrespective of any stealth
1562+
// status. We thus need to check the type rather than the status as the
1563+
// disguise status is absent during the disguise transition phase.
15611564
if (obj->isKindOf(KINDOF_DISGUISER))
15621565
return true;
15631566

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1713,6 +1713,9 @@ Bool Object::isLogicallyVisible() const
17131713

17141714
const Object* obj = getOuterObject();
17151715

1716+
// Disguisers are always visible to all players, irrespective of any stealth
1717+
// status. We thus need to check the type rather than the status as the
1718+
// disguise status is absent during the disguise transition phase.
17161719
if (obj->isKindOf(KINDOF_DISGUISER))
17171720
return true;
17181721

0 commit comments

Comments
 (0)