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 65fb1bd..bd4c0cc 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 6fac677..b0ebc13 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