projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
12c67d9
)
fixed cursor position on high score screen after leaving score info page
author
Holger Schemel
<info@artsoft.org>
Sat, 12 Mar 2022 11:41:13 +0000
(12:41 +0100)
committer
Holger Schemel
<info@artsoft.org>
Sat, 12 Mar 2022 11:41:13 +0000
(12:41 +0100)
src/screens.c
patch
|
blob
|
history
diff --git
a/src/screens.c
b/src/screens.c
index c036c5a2531b2c7db1cef126d03da8685488710f..c47d19f2679f50e267310a3a22063825920fcec5 100644
(file)
--- a/
src/screens.c
+++ b/
src/screens.c
@@
-5114,8
+5114,13
@@
static void drawChooseTreeScreen_Scores_NotAvailable(void)
static TreeInfo *setHallOfFameActiveEntry(TreeInfo **ti_ptr)
{
static TreeInfo *setHallOfFameActiveEntry(TreeInfo **ti_ptr)
{
+ int score_pos = scores.last_added;
+
+ if (game_status_last_screen == GAME_MODE_SCOREINFO)
+ score_pos = scores.last_entry_nr;
+
// set current tree entry to last added score entry
// set current tree entry to last added score entry
- *ti_ptr = getTreeInfoFromIdentifier(score_entries, i_to_a(score
s.last_added
));
+ *ti_ptr = getTreeInfoFromIdentifier(score_entries, i_to_a(score
_pos
));
// if that fails, set current tree entry to first entry (back link)
if (*ti_ptr == NULL)
// if that fails, set current tree entry to first entry (back link)
if (*ti_ptr == NULL)