From: Holger Schemel Date: Wed, 10 Oct 2018 22:10:44 +0000 (+0200) Subject: fixed bug with repeating last level in levelset when auto-playing next level X-Git-Tag: 4.1.2.0~140 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=1278cf3323aedb3748abc16fb3b4f66f37ed0ad6;p=rocksndiamonds.git fixed bug with repeating last level in levelset when auto-playing next level --- diff --git a/src/game.c b/src/game.c index 40efde17..94f48934 100644 --- a/src/game.c +++ b/src/game.c @@ -4734,6 +4734,7 @@ void GameEnd(void) DrawHallOfFame(last_level_nr, hi_pos); } else if (setup.auto_play_next_level && setup.increment_levels && + last_level_nr < leveldir_current->last_level && !network_playing) { StartGameActions(network.enabled, setup.autorecord, level.random_seed); diff --git a/src/screens.c b/src/screens.c index 851e0a55..5900616f 100644 --- a/src/screens.c +++ b/src/screens.c @@ -4662,6 +4662,7 @@ void HandleHallOfFame(int mx, int my, int dx, int dy, int button) if (game_status_last_screen == GAME_MODE_PLAYING && setup.auto_play_next_level && setup.increment_levels && + level_nr < leveldir_current->last_level && !network_playing) { StartGameActions(network.enabled, setup.autorecord, level.random_seed);