projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
10f5a64
)
small code cleanup
author
Holger Schemel
<info@artsoft.org>
Mon, 29 Oct 2018 19:51:22 +0000
(20:51 +0100)
committer
Holger Schemel
<info@artsoft.org>
Mon, 29 Oct 2018 19:51:22 +0000
(20:51 +0100)
src/files.c
patch
|
blob
|
history
diff --git
a/src/files.c
b/src/files.c
index f6cc17315a839a0d4954209859fd97cd218e407d..b5c92b98f5033e4b3fce32cc156f645d6b6bdf2a 100644
(file)
--- a/
src/files.c
+++ b/
src/files.c
@@
-6326,14
+6326,6
@@
static void LoadLevel_InitVersion(struct LevelInfo *level)
level->extra_time_score = level->score[SC_TIME_BONUS];
}
level->extra_time_score = level->score[SC_TIME_BONUS];
}
- // game logic of "game of life" and "biomaze" was buggy before 4.1.1.1
- 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
@@
-6431,6
+6423,14
@@
static void LoadLevel_InitVersion(struct LevelInfo *level)
// levels were solved by the first player entering an exit up to 4.1.0.0
if (level->game_version <= VERSION_IDENT(4,1,0,0))
level->solved_by_one_player = TRUE;
// levels were solved by the first player entering an exit up to 4.1.0.0
if (level->game_version <= VERSION_IDENT(4,1,0,0))
level->solved_by_one_player = TRUE;
+
+ // game logic of "game of life" and "biomaze" was buggy before 4.1.1.1
+ 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;
}
static void LoadLevel_InitStandardElements(struct LevelInfo *level)
}
static void LoadLevel_InitStandardElements(struct LevelInfo *level)