@@ -148,7 +148,8 @@ void top_menu_widget::update_month_year_max_width(uint8_t month, int year) {
148
148
149
149
static void menu_debug_render_text (int opt, bool v) {
150
150
auto & data = g_top_menu;
151
- static const char *debug_text_rend[][2 ] = {
151
+ struct option { pcstr on, off; };
152
+ static option debug_text_rend[] = {
152
153
{" Buildings ON" , " Buildings OFF" },
153
154
{" Tile Size ON" , " Tile Size OFF" },
154
155
{" Roads ON" , " Roads OFF" },
@@ -175,12 +176,15 @@ static void menu_debug_render_text(int opt, bool v) {
175
176
{" Marshland Depl ON" , " Marshland Depl OFF" },
176
177
{" Dmg Fire ON" , " Dmg Fire OFF" },
177
178
{" Desirability ON" , " Desirability OFF" },
179
+ {" River Shore ON" , " River Shore OFF" },
178
180
};
179
- g_top_menu.menu_item_update (" debug_render" , opt, debug_text_rend[opt][v ? 0 : 1 ]);
181
+ const auto ¤t = debug_text_rend[opt];
182
+ g_top_menu.menu_item_update (" debug_render" , opt, v ? current.on : current.off );
180
183
}
181
184
182
185
static void menu_debug_opt_text (int opt, bool v) {
183
- static const char * debug_text_opt[][2 ] = {
186
+ struct option { pcstr on, off; };
187
+ static option debug_text_opt[] = {
184
188
{" Pages ON" , " Pages OFF" },
185
189
{" Game Time ON" , " Game Time OFF" },
186
190
{" Build Planner ON" , " Build Planner OFF" },
@@ -198,7 +202,8 @@ static void menu_debug_opt_text(int opt, bool v) {
198
202
{" Full Screenshot" , " Full Screenshot" },
199
203
{" Write Video ON" , " Write Video OFF" },
200
204
};
201
- g_top_menu.menu_item_update (" debug" , opt, debug_text_opt[opt][v ? 0 : 1 ]);
205
+ const auto ¤t = debug_text_opt[opt];
206
+ g_top_menu.menu_item_update (" debug" , opt, v ? current.on : current.off );
202
207
}
203
208
204
209
static void menu_debug_screenshot (int opt) {
0 commit comments