aboutsummaryrefslogtreecommitdiff
path: root/map.c
diff options
context:
space:
mode:
Diffstat (limited to 'map.c')
-rw-r--r--map.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/map.c b/map.c
index 966ab75..127db04 100644
--- a/map.c
+++ b/map.c
@@ -2337,7 +2337,7 @@ static config_item *get_prefs(game_ui *ui)
{
config_item *ret;
- ret = snewn(2, config_item);
+ ret = snewn(3, config_item);
ret[0].name = "Victory flash effect";
ret[0].kw = "flash-type";
@@ -2346,8 +2346,13 @@ static config_item *get_prefs(game_ui *ui)
ret[0].u.choices.choicekws = ":cyclic:each-white:all-white";
ret[0].u.choices.selected = ui->flash_type;
- ret[1].name = NULL;
- ret[1].type = C_END;
+ ret[1].name = "Number regions";
+ ret[1].kw = "show-numbers";
+ ret[1].type = C_BOOLEAN;
+ ret[1].u.boolean.bval = ui->show_numbers;
+
+ ret[2].name = NULL;
+ ret[2].type = C_END;
return ret;
}
@@ -2355,6 +2360,7 @@ static config_item *get_prefs(game_ui *ui)
static void set_prefs(game_ui *ui, const config_item *cfg)
{
ui->flash_type = cfg[0].u.choices.selected;
+ ui->show_numbers = cfg[1].u.boolean.bval;
}
static void free_ui(game_ui *ui)