File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
GeneralsMD/Code/GameEngine/Source/GameLogic/Object
Generals/Code/GameEngine/Source/GameLogic/Object Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments