mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
slightly modified version of Grievre's fix for black models on an unlit map
This commit is contained in:
parent
8b2eb9e73e
commit
adf50949e2
2 changed files with 4 additions and 1 deletions
1
NEWS
1
NEWS
|
@ -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)
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue