From ffc907b04605542d08793841ffa7253750f73cf0 Mon Sep 17 00:00:00 2001 From: Alma Dejus Date: Mon, 11 Dec 2023 10:05:33 +0100 Subject: [PATCH] cleanup in Pause_menu.cc file, Alma och Malin --- src/Pause_menu.cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Pause_menu.cc b/src/Pause_menu.cc index a7d4971..94df2e3 100644 --- a/src/Pause_menu.cc +++ b/src/Pause_menu.cc @@ -108,8 +108,13 @@ void Pause_menu::update(Context& context) } // mouse placement - mouse_r.setPosition(((S_WIDTH / 2) + 60 - 7*(menu_index - 2)*(menu_index - 3) - 15*(menu_index - 1)*(menu_index - 2)), ((S_HEIGHT / 2) - 50 + 50*(menu_index - 1))); - mouse_l.setPosition(((S_WIDTH / 2) - 58 + 7*(menu_index - 2)*(menu_index - 3) + 15*(menu_index - 1)*(menu_index - 2)), ((S_HEIGHT / 2) - 50 + 50*(menu_index - 1))); + mouse_r.setPosition(((S_WIDTH/2) + 60 - 7*(menu_index - 2)*(menu_index - 3) + - 15*(menu_index - 1)*(menu_index - 2)), + ((S_HEIGHT / 2) - 50 + 50*(menu_index - 1))); + + mouse_l.setPosition(((S_WIDTH/2) - 58 + 7*(menu_index - 2)*(menu_index - 3) + + 15*(menu_index - 1)*(menu_index - 2)), + ((S_HEIGHT / 2) - 50 + 50*(menu_index - 1))); } void Pause_menu::render(sf::RenderWindow& window) const -- 2.30.2