MCPcopy Create free account
hub / github.com/Panzerschrek/Chasm-Reverse / UpdateParams

Method UpdateParams

PanzerChasm/client/movement_controller.cpp:35–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35void MovementController::UpdateParams()
36{
37 fov_= settings_.GetOrSetFloat( SettingsKeys::fov, 90.0f );
38 fov_= std::max( 10.0f, std::min( fov_, 150.0f ) );
39 settings_.SetSetting( SettingsKeys::fov, fov_ );
40
41 is_old_style_perspective_= settings_.GetOrSetBool( SettingsKeys::old_style_perspective, false );
42
43 ClipCameraAngles();
44}
45
46void MovementController::Tick( const KeyboardState& keyboard_state )
47{

Callers 1

DrawMethod · 0.80

Calls 3

GetOrSetFloatMethod · 0.80
SetSettingMethod · 0.80
GetOrSetBoolMethod · 0.80

Tested by

no test coverage detected