mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2024-11-10 07:11:54 +00:00
Fix warning variable add is used uninitialized
This commit is contained in:
parent
52da823a3c
commit
714cc90ce7
1 changed files with 5 additions and 0 deletions
|
@ -975,6 +975,11 @@ int LightContributionToSample( trace_t *trace ){
|
|||
return 1;
|
||||
}
|
||||
|
||||
/* unknown light type */
|
||||
else {
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* ydnar: changed to a variable number */
|
||||
if ( add <= 0.0f || ( add <= light->falloffTolerance && ( light->flags & LIGHT_FAST_ACTUAL ) ) ) {
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue