MCPcopy Create free account
hub / github.com/demoth/jake2 / SetLightstyle

Method SetLightstyle

client/src/main/java/jake2/client/CL_fx.java:160–174  ·  view source on GitHub ↗
(int i)

Source from the content-addressed store, hash-verified

158 }
159
160 static void SetLightstyle(int i) {
161 String s;
162 int j, k;
163
164 s = ClientGlobals.cl.configstrings[i + Defines.CS_LIGHTS];
165
166 j = s.length();
167 if (j >= Defines.MAX_QPATH)
168 Com.Error(Defines.ERR_DROP, "svc_lightstyle length=" + j);
169
170 cl_lightstyle[i].length = j;
171
172 for (k = 0; k < j; k++)
173 cl_lightstyle[i].map[k] = (float) (s.charAt(k) - 'a') / (float) ('m' - 'a');
174 }
175
176 /*
177 * ================ CL_AddLightStyles ================

Callers 1

ParseConfigStringMethod · 0.95

Calls 1

ErrorMethod · 0.95

Tested by

no test coverage detected