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

Function CycleViewDistanceBackwards

src/Game.c:132–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132static void CycleViewDistanceBackwards(const short* viewDists, int count) {
133 int i, dist;
134 for (i = count - 1; i >= 0; i--) {
135 dist = viewDists[i];
136
137 if (dist < Game_UserViewDistance) {
138 Game_UserSetViewDistance(dist); return;
139 }
140 }
141 Game_UserSetViewDistance(viewDists[count - 1]);
142}
143
144static const short normalDists[] = { 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096 };
145static const short classicDists[] = { 8, 32, 128, 512 };

Callers 1

Game_CycleViewDistanceFunction · 0.85

Calls 1

Game_UserSetViewDistanceFunction · 0.85

Tested by

no test coverage detected