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