File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
GeneralsMD/Code/GameEngine/Source/GameLogic/Object
Generals/Code/GameEngine/Source/GameLogic/Object Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -884,6 +884,8 @@ UnsignedInt WeaponTemplate::fireWeaponTemplate
884884
885885 Bool handled;
886886
887+ // TODO: Remove hardcoded KINDOF_MINE check and apply PlayFXWhenStealthed = Yes to the mine weapons instead.
888+
887889 if (!sourceObj->getDrawable ()->isVisible () // if user watching cannot see us
888890 && !sourceObj->isKindOf (KINDOF_MINE) // and not a mine (which always do the FX, even if hidden)...
889891 && !isPlayFXWhenStealthed () // and not a weapon marked to playwhenstealthed
Original file line number Diff line number Diff line change @@ -915,6 +915,8 @@ UnsignedInt WeaponTemplate::fireWeaponTemplate
915915
916916 Bool handled;
917917
918+ // TODO: Remove hardcoded KINDOF_MINE check and apply PlayFXWhenStealthed = Yes to the mine weapons instead.
919+
918920 if (!sourceObj->getDrawable ()->isVisible () // if user watching cannot see us
919921 && !sourceObj->isKindOf (KINDOF_MINE) // and not a mine (which always do the FX, even if hidden)...
920922 && !isPlayFXWhenStealthed () // and not a weapon marked to playwhenstealthed
You can’t perform that action at this time.
0 commit comments