(int i)
| 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 ================ |
no test coverage detected