fixed bug using scroll buffer also for MM engine after game was solved
authorHolger Schemel <info@artsoft.org>
Thu, 9 Mar 2017 18:47:38 +0000 (19:47 +0100)
committerHolger Schemel <info@artsoft.org>
Fri, 23 Mar 2018 22:21:10 +0000 (23:21 +0100)
src/tools.c

index 63718a51c691b3e92d8ce743826fc3a2408150cf..ee00da19228e710bae0cd5641acf931aaf0b06de 100644 (file)
@@ -3973,7 +3973,9 @@ static int RequestHandleEvents(unsigned int req_state)
   {
     if (level_solved)
     {
-      SetDrawtoField(DRAW_TO_FIELDBUFFER);
+      /* the MM game engine does not use a special (scrollable) field buffer */
+      if (level.game_engine_type != GAME_ENGINE_TYPE_MM)
+       SetDrawtoField(DRAW_TO_FIELDBUFFER);
 
       HandleGameActions();