vmap: Fix _light/light handling, small PR slipup
This commit is contained in:
parent
5537a7c2b3
commit
56603d6048
1 changed files with 4 additions and 5 deletions
|
@ -582,14 +582,13 @@ void CreateEntityLights( void ){
|
|||
light->color[ 1 ] /= 255;
|
||||
light->color[ 2 ] /= 255;
|
||||
intensity /= 4;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
intensity = FloatForKey( e, "_light" );
|
||||
if ( intensity == 0.0f ) {
|
||||
intensity = FloatForKey( e, "light" );
|
||||
}
|
||||
}
|
||||
} else {
|
||||
intensity = FloatForKey( e, "light" );
|
||||
}
|
||||
|
||||
if ( intensity == 0.0f ) {
|
||||
intensity = 300.0f;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue