added compatibility check if Sokoban objects need to be solved
authorHolger Schemel <info@artsoft.org>
Mon, 29 Oct 2018 19:49:41 +0000 (20:49 +0100)
committerHolger Schemel <info@artsoft.org>
Mon, 29 Oct 2018 19:49:41 +0000 (20:49 +0100)
src/files.c

index 58af05974d722b160b2db2860372a23d99b070a6..f6cc17315a839a0d4954209859fd97cd218e407d 100644 (file)
@@ -6330,6 +6330,10 @@ static void LoadLevel_InitVersion(struct LevelInfo *level)
   if (level->game_version < VERSION_IDENT(4,1,1,1))
     level->use_life_bugs = TRUE;
 
+  // only Sokoban fields (but not objects) had to be solved before 4.1.1.1
+  if (level->game_version < VERSION_IDENT(4,1,1,1))
+    level->sb_objects_needed = FALSE;
+
   if (level->game_version < VERSION_IDENT(3,2,0,7))
   {
     // default behaviour for snapping was "not continuous" before 3.2.0-7