vmap: Fix _light/light handling, small PR slipup

This commit is contained in:
Marco Cawthorne 2021-08-28 13:29:53 +02:00
parent 5537a7c2b3
commit 56603d6048

View file

@ -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;
}