projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca2d650
)
added level value to use time score for 1 or 10 seconds left (not used yet)
author
Holger Schemel
<info@artsoft.org>
Wed, 6 Jan 2021 23:03:35 +0000
(
00:03
+0100)
committer
Holger Schemel
<info@artsoft.org>
Wed, 6 Jan 2021 23:03:35 +0000
(
00:03
+0100)
src/files.c
patch
|
blob
|
history
src/main.h
patch
|
blob
|
history
diff --git
a/src/files.c
b/src/files.c
index 65fb1bdc22b4ad158443ed7482b014aef6bfea63..bd4c0cc614a6b39d95708040a945d7fee66003bc 100644
(file)
--- a/
src/files.c
+++ b/
src/files.c
@@
-258,6
+258,12
@@
static struct LevelFileConfigInfo chunk_config_INFO[] =
&li.solved_by_one_player, FALSE
},
+ {
+ -1, -1,
+ TYPE_INTEGER, CONF_VALUE_8_BIT(12),
+ &li.time_score_base, 1
+ },
+
{
-1, -1,
-1, -1,
diff --git
a/src/main.h
b/src/main.h
index 6fac677484fcd6ded75579e50d8203e0166af267..b0ebc13d67372c1f9335f00496161006f0bb2282 100644
(file)
--- a/
src/main.h
+++ b/
src/main.h
@@
-3204,6
+3204,8
@@
struct LevelInfo
// ('int' instead of 'boolean' because used as selectbox value in editor)
int use_step_counter; // count steps instead of seconds for level
+ int time_score_base; // use time score for 1 or 10 seconds/steps
+
short field[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
boolean use_custom_template; // use custom properties from template file