| 186 | } |
| 187 | |
| 188 | void CTorch::UpdateSwitchNightVision() |
| 189 | { |
| 190 | if (!m_bNightVisionEnabled) |
| 191 | return; |
| 192 | |
| 193 | auto* pA = smart_cast<CActor*>(H_Parent()); |
| 194 | if (pA && m_bNightVisionOn && !pA->Cameras().GetPPEffector((EEffectorPPType)effNightvision)) |
| 195 | SwitchNightVision(true); |
| 196 | } |
| 197 | |
| 198 | void CTorch::Switch() |
| 199 | { |
nothing calls this directly
no test coverage detected