projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
429dbf4
)
fixed saving already erased score tape
author
Holger Schemel
<info@artsoft.org>
Sat, 24 Apr 2021 23:18:28 +0000
(
01:18
+0200)
committer
Holger Schemel
<info@artsoft.org>
Sat, 1 May 2021 13:38:30 +0000
(15:38 +0200)
src/game.c
patch
|
blob
|
history
diff --git
a/src/game.c
b/src/game.c
index 78101becf1c76f8e48e12a5ef252c4344c753350..b85dbcae9861dfcae7df2d211ed5a51e2aeba768 100644
(file)
--- a/
src/game.c
+++ b/
src/game.c
@@
-5004,6
+5004,9
@@
void GameEnd(void)
SaveLevelSetup_SeriesInfo();
}
+ // save score and score tape before potentially erasing tape below
+ highlight_position = NewHighScore(last_level_nr);
+
if (setup.increment_levels &&
level_nr < leveldir_current->last_level &&
!network_playing)
@@
-5019,8
+5022,6
@@
void GameEnd(void)
}
}
- highlight_position = NewHighScore(last_level_nr);
-
if (highlight_position >= 0 && setup.show_scores_after_game)
{
SetGameStatus(GAME_MODE_SCORES);