Browse Source

Fix typo in plPlate.

Joseph Davies 12 years ago
parent
commit
e9a861ee1f
  1. 4
      Sources/Plasma/PubUtilLib/plPipeline/plPlates.cpp

4
Sources/Plasma/PubUtilLib/plPipeline/plPlates.cpp

@ -123,14 +123,14 @@ void plPlate::SetPosition( float x, float y, float z )
//// SetSize ///////////////////////////////////////////////////////////////// //// SetSize /////////////////////////////////////////////////////////////////
void plPlate::SetSize( float width, float height, bool adjustByAspectRation ) void plPlate::SetSize( float width, float height, bool adjustByAspectRatio )
{ {
hsVector3 size; hsVector3 size;
width *= fDepth / 1.0f; width *= fDepth / 1.0f;
height *= fDepth / 1.0f; height *= fDepth / 1.0f;
size.fX = adjustByAspectRation ? (width * ((float)plPlateManager::Instance().GetPipeHeight() / (float)plPlateManager::Instance().GetPipeWidth())) : width; size.fX = adjustByAspectRatio ? (width * ((float)plPlateManager::Instance().GetPipeHeight() / (float)plPlateManager::Instance().GetPipeWidth())) : width;
size.fY = height; size.fY = height;
size.fZ = 1.0f; size.fZ = 1.0f;

Loading…
Cancel
Save