This commit is contained in:
_ 2017-08-19 05:46:20 -07:00
commit a52339e574

View File

@ -283,7 +283,7 @@ EntityConverter::convertPickup(const std::vector<std::string> &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<std::string> &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);
}
std::stringstream colorStream;
colorStream << "\"_color\" \"" << red << " " << green << " " << blue << "\"" << std::endl;