File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed
GeneralsMD/Code/GameEngine/Source/GameLogic/Object
Generals/Code/GameEngine/Source/GameLogic/Object Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -890,6 +890,7 @@ UnsignedInt WeaponTemplate::fireWeaponTemplate
890890 const Bool isVisible = outerDrawable && outerDrawable->isVisible ();
891891
892892 if (!isVisible // if user watching cannot see us
893+ && sourceObj->testStatus (OBJECT_STATUS_STEALTHED) // if unit is stealthed (like a Pathfinder)
893894 && !sourceObj->isKindOf (KINDOF_MINE) // and not a mine (which always do the FX, even if hidden)...
894895 && !isPlayFXWhenStealthed () // and not a weapon marked to playwhenstealthed
895896 )
Original file line number Diff line number Diff line change @@ -921,6 +921,7 @@ UnsignedInt WeaponTemplate::fireWeaponTemplate
921921 const Bool isVisible = outerDrawable && outerDrawable->isVisible ();
922922
923923 if (!isVisible // if user watching cannot see us
924+ && sourceObj->testStatus (OBJECT_STATUS_STEALTHED) // if unit is stealthed (like a Pathfinder)
924925 && !sourceObj->isKindOf (KINDOF_MINE) // and not a mine (which always do the FX, even if hidden)...
925926 && !isPlayFXWhenStealthed () // and not a weapon marked to playwhenstealthed
926927 )
You can’t perform that action at this time.
0 commit comments