added level value to use time score for 1 or 10 seconds left (not used yet)
authorHolger Schemel <info@artsoft.org>
Wed, 6 Jan 2021 23:03:35 +0000 (00:03 +0100)
committerHolger Schemel <info@artsoft.org>
Wed, 6 Jan 2021 23:03:35 +0000 (00:03 +0100)
src/files.c
src/main.h

index 65fb1bdc22b4ad158443ed7482b014aef6bfea63..bd4c0cc614a6b39d95708040a945d7fee66003bc 100644 (file)
@@ -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,
index 6fac677484fcd6ded75579e50d8203e0166af267..b0ebc13d67372c1f9335f00496161006f0bb2282 100644 (file)
@@ -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