From cbb2f69cf062e04e2aae44c7c7e7a744cf576de4 Mon Sep 17 00:00:00 2001 From: suhrke Date: Sun, 13 Aug 2017 00:47:17 -0700 Subject: [PATCH] Fixed default point light color bug --- ReflexToQ3/includes/EntityConverter.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/ReflexToQ3/includes/EntityConverter.cpp b/ReflexToQ3/includes/EntityConverter.cpp index 92190df..aef5e29 100644 --- a/ReflexToQ3/includes/EntityConverter.cpp +++ b/ReflexToQ3/includes/EntityConverter.cpp @@ -283,7 +283,7 @@ EntityConverter::convertPickup(const std::vector &lines) const std::stringstream pickupStream; pickupStream << "\"classname\" \"" << pickupIter->second << "\"" << std::endl; convertedLines.push_back ( pickupStream.str() ); - // coordinates reordered to x, z, yentity + // coordinates reordered to x, z, y std::stringstream positionStream; positionStream << "\"origin\" \"" << coords[0] << " " << coords[2] << " " << offset(coords[1], OFFSET_PICKUP) << "\"" << std::endl; @@ -641,10 +641,8 @@ EntityConverter::convertPointLight(const std::vector &lines) const float red; float green; float blue; - if ( haveColor ) { - // Convert 32bit hex RGBA value (ALPHA ALWAYS FULL) into RGB values - hexToRGB(color, red, green, blue); - } + // Convert 32bit hex RGBA value (ALPHA ALWAYS FULL) into RGB values + hexToRGB(color, red, green, blue); std::stringstream colorStream; colorStream << "\"_color\" \"" << red << " " << green << " " << blue << "\"" << std::endl;