| 297 | } |
| 298 | |
| 299 | void MovementController::ClipCameraAngles() |
| 300 | { |
| 301 | const float max_ange_x= |
| 302 | is_old_style_perspective_ |
| 303 | ? ( Constants::half_pi * 0.65f ) |
| 304 | : Constants::half_pi; |
| 305 | |
| 306 | if( angle_.z > Constants::two_pi ) angle_.z-= Constants::two_pi; |
| 307 | else if( angle_.z < 0.0f ) angle_.z+= Constants::two_pi; |
| 308 | if( angle_.x > max_ange_x ) angle_.x= max_ange_x; |
| 309 | else if( angle_.x < -max_ange_x ) angle_.x= -max_ange_x; |
| 310 | } |
| 311 | |
| 312 | } // namespace ChasmReverse |
nothing calls this directly
no outgoing calls
no test coverage detected