| 218 | } |
| 219 | |
| 220 | void CameraViewer::InitVirtual(CameraType camType, float& heading, float& dive, float& fov) const |
| 221 | { |
| 222 | base::InitVirtual(camType, heading, dive, fov); |
| 223 | // Without this, fov defaults to 0 and LimitVirtual clamps it to 0.01 — an |
| 224 | // extreme telephoto (~0.6° wide). 0.7 rad ≈ 40° matches the engine default. |
| 225 | if (camType == CamInternal && fov <= 0.0f) |
| 226 | fov = 0.7f; |
| 227 | } |
| 228 | |
| 229 | extern bool ObjViewer; |
| 230 |
no outgoing calls
no test coverage detected