mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
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:
parent
b025e7ba9a
commit
cc92466725
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue