diff --git a/Docs/Luadoc/Lua.xml b/Docs/Luadoc/Lua.xml index a2faa19685..73b60227da 100644 --- a/Docs/Luadoc/Lua.xml +++ b/Docs/Luadoc/Lua.xml @@ -19,6 +19,7 @@ + @@ -154,6 +155,7 @@ + @@ -1225,6 +1227,7 @@ + @@ -1683,8 +1686,6 @@ - - @@ -1805,8 +1806,7 @@ - - + @@ -1896,6 +1896,6 @@ - sm-ssc v1.0 rc1.5 - 2010-08-10 + sm-ssc v1.0 rc2 + 2010-08-22 diff --git a/src/NoteDisplay.cpp b/src/NoteDisplay.cpp index c8cfa778f1..f7885f781c 100644 --- a/src/NoteDisplay.cpp +++ b/src/NoteDisplay.cpp @@ -449,8 +449,8 @@ void NoteDisplay::DrawHoldPart( vector &vpSpr, int iCol, int fYStep, fl const float fRotationY = ArrowEffects::GetRotationY( m_pPlayerState, fYOffset ) * PI/180; // if we're rotating, we need to modify the X and Z coords for the outer edges. - const float fRotOffsetX = fFrameWidth/2 * RageFastCos(fRotationY); - const float fRotOffsetZ = fFrameWidth/2 * RageFastSin(fRotationY); + const float fRotOffsetX = (fScaledFrameWidth/2) * RageFastCos(fRotationY); + const float fRotOffsetZ = (fScaledFrameWidth/2) * RageFastSin(fRotationY); //const float fXLeft = fX - (fScaledFrameWidth/2); const float fXLeft = fX - fRotOffsetX; @@ -458,6 +458,7 @@ void NoteDisplay::DrawHoldPart( vector &vpSpr, int iCol, int fYStep, fl //const float fXRight = fX + (fScaledFrameWidth/2); const float fXRight = fX + fRotOffsetX; const float fZLeft = fZ - fRotOffsetZ; + const float fZCenter = fZ; const float fZRight = fZ + fRotOffsetZ; const float fDistFromTop = fY - fYTop; @@ -471,7 +472,7 @@ void NoteDisplay::DrawHoldPart( vector &vpSpr, int iCol, int fYStep, fl bAllAreTransparent = false; queue.v[0].p = RageVector3(fXLeft, fY, fZLeft); queue.v[0].c = color; queue.v[0].t = RageVector2(fTexCoordLeft, fTexCoordTop); - queue.v[1].p = RageVector3(fXCenter, fY, fZ); queue.v[1].c = color; queue.v[1].t = RageVector2(fTexCoordCenter, fTexCoordTop); + queue.v[1].p = RageVector3(fXCenter, fY, fZCenter); queue.v[1].c = color; queue.v[1].t = RageVector2(fTexCoordCenter, fTexCoordTop); queue.v[2].p = RageVector3(fXRight, fY, fZRight); queue.v[2].c = color; queue.v[2].t = RageVector2(fTexCoordRight, fTexCoordTop); queue.v+=3; @@ -679,13 +680,11 @@ void NoteDisplay::DrawActor( const TapNote& tn, Actor* pActor, NotePart part, in const float fGlow = ArrowEffects::GetGlow( m_pPlayerState, iCol, fYOffset, fPercentFadeToFail, m_fYReverseOffsetPixels, fDrawDistanceBeforeTargetsPixels, fFadeInPercentOfDrawFar ); const RageColor diffuse = RageColor(fColorScale,fColorScale,fColorScale,fAlpha); const RageColor glow = RageColor(1,1,1,fGlow); - float fRotationX = 0; - float fRotationY = 0; - float fRotationZ = 0; + float fRotationX = 0, fRotationY = 0, fRotationZ = 0; - fRotationX = ArrowEffects::GetRotationX( m_pPlayerState, fYOffset ); - fRotationY = ArrowEffects::GetRotationY( m_pPlayerState, fYOffset ); - fRotationZ = ArrowEffects::GetRotationZ( m_pPlayerState, fBeat, tn.type == tn.hold_head ); + fRotationX = ArrowEffects::GetRotationX( m_pPlayerState, fYOffset ); + fRotationY = ArrowEffects::GetRotationY( m_pPlayerState, fYOffset ); + fRotationZ = ArrowEffects::GetRotationZ( m_pPlayerState, fBeat, tn.type == tn.hold_head ); if( tn.type != tn.hold_head ) fColorScale *= ArrowEffects::GetBrightness( m_pPlayerState, fBeat );