From 10f5a64c95da4ae6a90396be5ec6457f6642aebf Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Mon, 29 Oct 2018 20:49:41 +0100 Subject: [PATCH] added compatibility check if Sokoban objects need to be solved --- src/files.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/files.c b/src/files.c index 58af0597..f6cc1731 100644 --- a/src/files.c +++ b/src/files.c @@ -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 -- 2.34.1