From 56603d6048b7cdb32dee0e82986ebc76a98c6643 Mon Sep 17 00:00:00 2001 From: Marco Hladik Date: Sat, 28 Aug 2021 13:29:53 +0200 Subject: [PATCH] vmap: Fix _light/light handling, small PR slipup --- tools/vmap/light.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tools/vmap/light.c b/tools/vmap/light.c index 91e4c4b..bb3d1e4 100644 --- a/tools/vmap/light.c +++ b/tools/vmap/light.c @@ -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; }