From 87fd32ed7c5c47b7278300d12bf67c5b46a604a6 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Thu, 7 Jan 2021 00:03:35 +0100 Subject: [PATCH] added level value to use time score for 1 or 10 seconds left (not used yet) --- src/files.c | 6 ++++++ src/main.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/src/files.c b/src/files.c index 65fb1bdc..bd4c0cc6 100644 --- 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 6fac6774..b0ebc13d 100644 --- 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 -- 2.34.1