From b5368e36ccd4a40536dc592fda0343ec01616008 Mon Sep 17 00:00:00 2001 From: Wayne Stambaugh Date: Wed, 21 Sep 2011 08:51:46 -0400 Subject: [PATCH] Fix 3D pad drawing bug. Fixes 855288. --- common/trigo.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/common/trigo.cpp b/common/trigo.cpp index 904359e776..ab1078db17 100644 --- a/common/trigo.cpp +++ b/common/trigo.cpp @@ -346,8 +346,10 @@ void RotatePoint( double* pX, double* pY, int angle ) { double fangle = DEG2RAD( (double) angle / 10.0 ); - *pX = (*pY * sin( fangle ) ) + (*pX * cos( fangle ) ); - *pY = (*pY * cos( fangle ) ) - (*pX * sin( fangle ) ); + double fpx = (*pY * sin( fangle ) ) + (*pX * cos( fangle ) ); + double fpy = (*pY * cos( fangle ) ) - (*pX * sin( fangle ) ); + *pX = fpx; + *pY = fpy; } }