projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
removed duplicate code
[rocksndiamonds.git]
/
src
/
screens.c
diff --git
a/src/screens.c
b/src/screens.c
index 9906b6441289415c54f5fb38c6af82f5bbf2be32..1318bde16e80a2a079b41caab99c452ef8714d78 100644
(file)
--- a/
src/screens.c
+++ b/
src/screens.c
@@
-2073,7
+2073,7
@@
void HandleMainMenu(int mx, int my, int dx, int dy, int button)
SetGameStatus(GAME_MODE_SCORES);
SetGameStatus(GAME_MODE_SCORES);
- DrawHallOfFame(-1);
+ DrawHallOfFame(
level_nr,
-1);
}
else if (pos == MAIN_CONTROL_EDITOR)
{
}
else if (pos == MAIN_CONTROL_EDITOR)
{
@@
-4498,7
+4498,7
@@
void HandleChooseLevelNr(int mx, int my, int dx, int dy, int button)
HandleChooseTree(mx, my, dx, dy, button, &level_number_current);
}
HandleChooseTree(mx, my, dx, dy, button, &level_number_current);
}
-void DrawHallOfFame(int highlight_position)
+void DrawHallOfFame(int
level_nr, int
highlight_position)
{
int fade_mask = REDRAW_FIELD;
{
int fade_mask = REDRAW_FIELD;
@@
-4619,17
+4619,7
@@
void HandleHallOfFame(int mx, int my, int dx, int dy, int button)
drawHallOfFameList(first_entry, highlight_position);
}
}
drawHallOfFameList(first_entry, highlight_position);
}
}
- else if (button == MB_MENU_LEAVE)
- {
- PlaySound(SND_MENU_ITEM_SELECTING);
-
- FadeSound(SND_BACKGROUND_SCORES);
-
- SetGameStatus(GAME_MODE_MAIN);
-
- DrawMainMenu();
- }
- else if (button == MB_MENU_CHOICE)
+ else if (button == MB_MENU_LEAVE || button == MB_MENU_CHOICE)
{
PlaySound(SND_MENU_ITEM_SELECTING);
{
PlaySound(SND_MENU_ITEM_SELECTING);