Skip to content

Commit

Permalink
GCC compile fix for fadeAmount not being initialized.
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenjsweeney committed May 15, 2018
1 parent 7eefeee commit 7598af4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/world/world.c
Original file line number Diff line number Diff line change
Expand Up @@ -765,6 +765,8 @@ void drawGameOver(void)
{
int fadeAmount;

fadeAmount = 0;

if (world.gameOverTimer <= -FPS)
{
fadeAmount = MIN((world.gameOverTimer + FPS) * -1, 128);
Expand All @@ -774,7 +776,7 @@ void drawGameOver(void)

if (world.gameOverTimer <= -FPS * 2)
{
blitRect(atlasTexture->texture, SCREEN_WIDTH / 2, 280, &missionFailed->rect, 1);
blitRect(atlasTexture->texture, SCREEN_WIDTH / 2, 240, &missionFailed->rect, 1);

if (world.gameOverTimer <= -FPS * 3)
{
Expand Down

0 comments on commit 7598af4

Please sign in to comment.