From 247f5c143b2d60ca40166d562a4f4dd3e7badd15 Mon Sep 17 00:00:00 2001 From: GarandPLG Date: Wed, 8 Apr 2026 14:51:04 +0200 Subject: [PATCH] Adjust board vertical offset and focus --- src/app/states/skirmish_states/board.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/app/states/skirmish_states/board.rs b/src/app/states/skirmish_states/board.rs index 27dc4c6..5d50025 100644 --- a/src/app/states/skirmish_states/board.rs +++ b/src/app/states/skirmish_states/board.rs @@ -34,12 +34,13 @@ impl BoardState { let v_max_offset: usize = Self::max_offset(map_height, rows); let h_max_offset: usize = Self::max_offset(map_width, cols); - let vertical_offset: Offset = - Offset::new(Some((map_height - rows as usize) / 2), Some(v_max_offset)); + let vertical_offset: Offset = Offset::new( + Some((map_height - rows as usize) / 2 + 1), + Some(v_max_offset), + ); let horizontal_offset: Offset = Offset::new(None, Some(h_max_offset)); - let focused_cell: FocusedCell = - FocusedCell::new((map_height / 2) - 1, 2, map_height, map_width); + let focused_cell: FocusedCell = FocusedCell::new(map_height / 2, 2, map_height, map_width); let mut cells: Vec> = Vec::new();