| 1340 | } |
| 1341 | |
| 1342 | bool TestLockedCamera() |
| 1343 | { |
| 1344 | // Check if break condition is met. |
| 1345 | if (Camera.type != CameraType::Look && Camera.type != CameraType::Combat) |
| 1346 | return true; |
| 1347 | |
| 1348 | // Check if there's an active fixed camera. |
| 1349 | if (Camera.number == NO_VALUE) |
| 1350 | return true; |
| 1351 | |
| 1352 | // Check if locked bit is set for a given fixed camera. |
| 1353 | if (!(g_Level.Cameras[Camera.number].Flags & (int)LevelCameraFlags::Locked)) |
| 1354 | return false; |
| 1355 | |
| 1356 | return true; |
| 1357 | } |
| 1358 | |
| 1359 | float GetParticleDistanceFade(const Vector3i& pos) |
| 1360 | { |
no outgoing calls
no test coverage detected