aboutsummaryrefslogtreecommitdiff
path: root/Source/EndAnimation.c
diff options
context:
space:
mode:
authorXaviDCR92 <xavi.dcr@gmail.com>2017-12-26 22:18:37 +0100
committerXaviDCR92 <xavi.dcr@gmail.com>2017-12-26 22:18:37 +0100
commit4eaa6c091f97ca3455b2ae48a5f68867c0f7768e (patch)
tree79ae89ae5b7399c774ae6fcb792c109a725e1af8 /Source/EndAnimation.c
parentf06d582d63b1f91e48ecb17a11987217144c5c79 (diff)
downloadairport-4eaa6c091f97ca3455b2ae48a5f68867c0f7768e.tar.gz
* Slight optimization: all comparations against true are now compared against != false.
+ Added a provisional background during gameplay (still WIP). * Map editor now allows creating a map.
Diffstat (limited to 'Source/EndAnimation.c')
-rw-r--r--Source/EndAnimation.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/EndAnimation.c b/Source/EndAnimation.c
index c60bf30..582dc17 100644
--- a/Source/EndAnimation.c
+++ b/Source/EndAnimation.c
@@ -184,7 +184,7 @@ void EndAnimationSquares(void)
sqPos[randInd] = true;
sqCounter--;
- while (sqPos[maxIndex] == true)
+ while (sqPos[maxIndex] != false)
{
// Lower maximum value for rand() so that it's
// easier to spot new empty index on next iteration.
@@ -209,7 +209,7 @@ void EndAnimationSquares(void)
{
for (j = 0; j < END_ANIMATION_SQUARES_TOTAL ; j++)
{
- if (sqPos[j] == true)
+ if (sqPos[j] != false)
{
EndAnimationRect.x = ((j) << END_ANIMATION_SQUARES_SIZE_BITSHIFT) -
(short)( (j / END_ANIMATION_SQUARES_PER_ROW) *