slightly modified version of Grievre's fix for black models on an unlit map

This commit is contained in:
Bill Currie 2004-05-02 20:40:09 +00:00
parent 8b2eb9e73e
commit adf50949e2
2 changed files with 4 additions and 1 deletions

1
NEWS
View File

@ -85,6 +85,7 @@ Changes from 0.5.4
kick default
* fix bug where certain looped sounds would cause a hang
* 64 bit compile fixes
* alias models are no longer black on maps with no lighting info
o qfcc enhancements.
* conforms better to Objective-C sematics
* "struct" support closer to that of C (ie, separate namespace)

View File

@ -423,8 +423,10 @@ R_LightPoint (const vec3_t p)
vec3_t end;
int r;
if (!r_worldentity.model->lightdata)
if (!r_worldentity.model->lightdata) {
ambientcolor[2] = ambientcolor[1] = ambientcolor[0] = 255;
return 255;
}
end[0] = p[0];
end[1] = p[1];