projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1c1f0b
)
fixed score of some game elements when reading native DC2 levels
author
Holger Schemel
<info@artsoft.org>
Fri, 4 Dec 2020 20:51:57 +0000
(21:51 +0100)
committer
Holger Schemel
<info@artsoft.org>
Fri, 4 Dec 2020 20:51:57 +0000
(21:51 +0100)
src/files.c
patch
|
blob
|
history
diff --git
a/src/files.c
b/src/files.c
index 9f4408b36db96947cfeaecc276d55e0fd3b194a9..258d73da62d1a16c1f48aade53f5167c9b789ff4 100644
(file)
--- a/
src/files.c
+++ b/
src/files.c
@@
-5717,6
+5717,10
@@
static void LoadLevelFromFileStream_DC(File *file, struct LevelInfo *level,
level->extra_time = header[56] | (header[57] << 8);
level->shield_normal_time = header[58] | (header[59] << 8);
+ // shield and extra time elements do not have a score
+ level->score[SC_SHIELD] = 0;
+ level->extra_time_score = 0;
+
// Diamond Caves has the same (strange) behaviour as Emerald Mine that gems
// can slip down from flat walls, like normal walls and steel walls
level->em_slippery_gems = TRUE;