GCC compile fix for fadeAmount not being initialized.
This commit is contained in:
parent
7eefeeed86
commit
7598af42a0
|
@ -765,6 +765,8 @@ void drawGameOver(void)
|
|||
{
|
||||
int fadeAmount;
|
||||
|
||||
fadeAmount = 0;
|
||||
|
||||
if (world.gameOverTimer <= -FPS)
|
||||
{
|
||||
fadeAmount = MIN((world.gameOverTimer + FPS) * -1, 128);
|
||||
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue