From d3bb79cf4ca61db14430bf8c953e094b9ec06530 Mon Sep 17 00:00:00 2001 From: biroder <107300789+biroder@users.noreply.github.com> Date: Mon, 25 Mar 2024 11:40:59 +0000 Subject: [PATCH] Update mod.rs --- src/menu/mod.rs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/menu/mod.rs b/src/menu/mod.rs index 72c0b85..b3ef1e0 100644 --- a/src/menu/mod.rs +++ b/src/menu/mod.rs @@ -675,15 +675,14 @@ impl Menu { ); batch.draw(ctx)?; } else { - let loc = &state.loc; let difficulty = match save.difficulty { - 0 => loc.t("menus.difficulty_menu.normal"), - 2 => loc.t("menus.difficulty_menu.easy"), - 4 => loc.t("menus.difficulty_menu.hard"), - _ => loc.t("menus.difficulty_menu.unknown"), + 0 => state.loc.t("menus.difficulty_menu.normal"), + 2 => state.loc.t("menus.difficulty_menu.easy"), + 4 => state.loc.t("menus.difficulty_menu.hard"), + _ => state.loc.t("menus.difficulty_menu.unknown"), }; let difficulty_name = - loc.tt("menus.difficulty_menu.difficulty_name", &[("difficulty", &difficulty)]); + state.loc.tt("menus.difficulty_menu.difficulty_name", &[("difficulty", &difficulty)]); state.font.builder().position(self.x as f32 + 20.0, y + 10.0).draw( &difficulty_name,