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;