From 3b80f74ce10cfd7e55199dcb9a8c4b80598227d2 Mon Sep 17 00:00:00 2001 From: Xavier ASUS Date: Fri, 23 Nov 2018 13:57:38 +0100 Subject: Optimization flag changed from -Os to -O3 (seems to perform better FPS-wise). Improved const-correctness and scope for some variables. --- Source/EndAnimation.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Source/EndAnimation.c') diff --git a/Source/EndAnimation.c b/Source/EndAnimation.c index 21d23e3..640c6e3 100644 --- a/Source/EndAnimation.c +++ b/Source/EndAnimation.c @@ -141,7 +141,7 @@ void EndAnimationLine(void) rectIndex += END_ANIMATION_LINE_STEP; - }while (rectIndex <= (X_SCREEN_RESOLUTION >> 1) ); + } while (rectIndex <= (X_SCREEN_RESOLUTION >> 1) ); } @@ -177,7 +177,7 @@ void EndAnimationSquares(void) sqPos[randInd] = true; sqCounter--; - while (sqPos[maxIndex] != false) + while (sqPos[maxIndex]) { // Lower maximum value for rand() so that it's // easier to spot new empty index on next iteration. @@ -193,7 +193,7 @@ void EndAnimationSquares(void) break; } } - }while (1); + } while (1); GfxSortSprite(&EndAnimationDisplay); @@ -201,7 +201,7 @@ void EndAnimationSquares(void) { for (j = 0; j < END_ANIMATION_SQUARES_TOTAL ; j++) { - if (sqPos[j] != false) + if (sqPos[j]) { EndAnimationRect.x = ((j) << END_ANIMATION_SQUARES_SIZE_BITSHIFT) - (short)( (j / END_ANIMATION_SQUARES_PER_ROW) * -- cgit v1.2.3