projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added compatibility check if Sokoban objects need to be solved
[rocksndiamonds.git]
/
src
/
files.c
diff --git
a/src/files.c
b/src/files.c
index 58af05974d722b160b2db2860372a23d99b070a6..f6cc17315a839a0d4954209859fd97cd218e407d 100644
(file)
--- 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;
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
if (level->game_version < VERSION_IDENT(3,2,0,7))
{
// default behaviour for snapping was "not continuous" before 3.2.0-7