Fix difficulty menu overwriting text from load menu.
This commit is contained in:
parent
2fed23c6ec
commit
577259845d
|
@ -66,28 +66,28 @@ static signed char showLoadMenu()
|
||||||
|
|
||||||
static void createDifficultyMenu()
|
static void createDifficultyMenu()
|
||||||
{
|
{
|
||||||
textSurface(13, "START GAME", -1, 350, FONT_WHITE);
|
textSurface(23, "START GAME", -1, 350, FONT_WHITE);
|
||||||
|
|
||||||
if (currentGame.difficulty == DIFFICULTY_EASY)
|
if (currentGame.difficulty == DIFFICULTY_EASY)
|
||||||
textSurface(14, "DIFFICULTY - EASY", -1, 370, FONT_WHITE);
|
textSurface(24, "DIFFICULTY - EASY", -1, 370, FONT_WHITE);
|
||||||
else if(currentGame.difficulty == DIFFICULTY_HARD)
|
else if(currentGame.difficulty == DIFFICULTY_HARD)
|
||||||
textSurface(14, "DIFFICULTY - HARD", -1, 370, FONT_WHITE);
|
textSurface(24, "DIFFICULTY - HARD", -1, 370, FONT_WHITE);
|
||||||
else
|
else
|
||||||
textSurface(14, "DIFFICULTY - NORMAL", -1, 370, FONT_WHITE);
|
textSurface(24, "DIFFICULTY - NORMAL", -1, 370, FONT_WHITE);
|
||||||
|
|
||||||
if (currentGame.gamePlay == GAMEPLAY_ONPON)
|
if (currentGame.gamePlay == GAMEPLAY_ONPON)
|
||||||
textSurface(15, "GAMEPLAY - ONPON", -1, 390, FONT_WHITE);
|
textSurface(25, "GAMEPLAY - ONPON", -1, 390, FONT_WHITE);
|
||||||
else
|
else
|
||||||
textSurface(15, "GAMEPLAY - NORMAL", -1, 390, FONT_WHITE);
|
textSurface(25, "GAMEPLAY - NORMAL", -1, 390, FONT_WHITE);
|
||||||
}
|
}
|
||||||
|
|
||||||
static signed char showDifficultyMenu()
|
static signed char showDifficultyMenu()
|
||||||
{
|
{
|
||||||
textShape[12].y = 430;
|
textShape[12].y = 430;
|
||||||
|
|
||||||
blitText(13);
|
blitText(23);
|
||||||
blitText(14);
|
blitText(24);
|
||||||
blitText(15);
|
blitText(25);
|
||||||
blitText(12);
|
blitText(12);
|
||||||
|
|
||||||
return 4;
|
return 4;
|
||||||
|
@ -530,8 +530,6 @@ int doTitle()
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
fprintf(stderr, "Difficulty %d, gameplay %d\n", currentGame.difficulty, currentGame.gamePlay);
|
|
||||||
|
|
||||||
return selectedOption;
|
return selectedOption;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue