projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added special mode to continue from hall of fame when pressing "space" key
[rocksndiamonds.git]
/
src
/
screens.c
diff --git
a/src/screens.c
b/src/screens.c
index 53ac39a7e8911e8d3af97091f7819af2073ff1b4..326fa677c0973404caa4abd28f6dfb97b7746e92 100644
(file)
--- a/
src/screens.c
+++ b/
src/screens.c
@@
-4362,7
+4362,11
@@
static void DrawChooseTree(TreeInfo **ti_ptr)
{
execSetupArtwork();
}
{
execSetupArtwork();
}
- else // GAME_MODE_LEVELS
+ else if (game_status == GAME_MODE_SCORES && scores.continue_playing)
+ {
+ StartPlayingFromHallOfFame();
+ }
+ else
{
SetGameStatus(GAME_MODE_MAIN);
{
SetGameStatus(GAME_MODE_MAIN);
@@
-4908,14
+4912,14
@@
static void HandleChooseTree(int mx, int my, int dx, int dy, int button,
return;
}
}
return;
}
}
- else if (
dx == -1
&& ti->node_parent)
+ else if (
(dx == -1 || button == MB_MENU_CONTINUE)
&& ti->node_parent)
{
{
- FadeSetLeaveMenu();
+ if (game_status != GAME_MODE_SCORES)
+ FadeSetLeaveMenu();
PlaySound(SND_MENU_ITEM_SELECTING);
*ti_ptr = ti->node_parent;
PlaySound(SND_MENU_ITEM_SELECTING);
*ti_ptr = ti->node_parent;
-
DrawChooseTree(ti_ptr);
return;
DrawChooseTree(ti_ptr);
return;
@@
-5307,6
+5311,9
@@
static void DrawHallOfFame_setScoreEntries(void)
if (score_entry_current == NULL)
score_entry_current = getFirstValidTreeInfoEntry(score_entries);
if (score_entry_current == NULL)
score_entry_current = getFirstValidTreeInfoEntry(score_entries);
+ if (score_entries != NULL && scores.last_added >= 0)
+ setString(&score_entries->node_group->name, BACKLINK_TEXT_NEXT);
+
// ("score_entries" and "score_entry_current" may be NULL here)
}
// ("score_entries" and "score_entry_current" may be NULL here)
}