MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / HS_SetFOV

Function HS_SetFOV

src/MenuOptions.c:1038–1044  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1036
1037static int HS_GetFOV(void) { return Camera.Fov; }
1038static void HS_SetFOV(int fov) {
1039 if (Camera.ZoomFov > fov) Camera.ZoomFov = fov;
1040 Camera.DefaultFov = fov;
1041
1042 Options_SetInt(OPT_FIELD_OF_VIEW, fov);
1043 Camera_SetFov(fov);
1044}
1045
1046static void HacksSettingsScreen_CheckHacksAllowed(struct MenuOptionsScreen* s) {
1047 struct Widget** widgets = s->widgets;

Callers

nothing calls this directly

Calls 2

Options_SetIntFunction · 0.85
Camera_SetFovFunction · 0.85

Tested by

no test coverage detected