From a9fdc5398e9d353de155fece6ff4396ca2af5357 Mon Sep 17 00:00:00 2001 From: minggo Date: Sun, 27 Oct 2019 20:45:29 +0800 Subject: [PATCH] Revert "fix RotateTo animation when angle is bigger than 360 (#20009)" This reverts commit c840544369f8c4c4822ee820d6337bd31f847f9d. --- cocos/2d/CCActionInterval.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/cocos/2d/CCActionInterval.cpp b/cocos/2d/CCActionInterval.cpp index 887e2b3b24fb..dd175876a83f 100644 --- a/cocos/2d/CCActionInterval.cpp +++ b/cocos/2d/CCActionInterval.cpp @@ -943,8 +943,6 @@ void RotateTo::calculateAngles(float &startAngle, float &diffAngle, float dstAng } diffAngle = dstAngle - startAngle; - //fix angle when angle is bigger than 360 - diffAngle = diffAngle - (int)diffAngle / 360 * 360; if (diffAngle > 180) { diffAngle -= 360;