diff --git a/cocos/2d/CCActionTiledGrid.cpp b/cocos/2d/CCActionTiledGrid.cpp index a96bfa7e91..ce62c9fd27 100644 --- a/cocos/2d/CCActionTiledGrid.cpp +++ b/cocos/2d/CCActionTiledGrid.cpp @@ -572,11 +572,6 @@ FadeOutDownTiles* FadeOutDownTiles::clone() const float FadeOutDownTiles::testFunc(const Size& pos, float time) { Vec2 n = Vec2((float)_gridSize.width, (float)_gridSize.height) * (1.0f - time); - //if (pos.height == 0) - //{ - // return 1.0f; - //} - return powf(n.y / (pos.height > 0.0f ? pos.height : 0.1f), 6); }