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

Function ClO_SetViewDist

src/MenuOptions.c:560–563  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

558 return VIEW_TINY;
559}
560static void ClO_SetViewDist(int v) {
561 int dist = v == VIEW_FAR ? 512 : (v == VIEW_NORMAL ? 128 : (v == VIEW_SHORT ? 32 : 8));
562 Game_UserSetViewDistance(dist);
563}
564
565static cc_bool ClO_GetAnaglyph(void) { return Game_Anaglyph3D; }
566static void ClO_SetAnaglyph(cc_bool v) {

Callers

nothing calls this directly

Calls 1

Game_UserSetViewDistanceFunction · 0.85

Tested by

no test coverage detected