Correct the calculation of halflife lighting.

The RBG values were taken from the wrong components of the array
(out-by-one).
This commit is contained in:
Bill Currie 2012-12-26 13:33:30 +09:00
parent b025e7ba9a
commit cc92466725

View file

@ -87,7 +87,7 @@ parse_light (const char *str, vec3_t color)
i = sscanf (str, "%lf %lf %lf %lf", &vec[0], &vec[1], &vec[2], &vec[3]);
switch (i) {
case 4: // HalfLife light
VectorScale (vec + 1, 1.0 / 255, color);
VectorScale (vec, 1.0 / 255, color);
return vec[3];
break;
case 3: