From 0956e8d8a798e57de236beb7f178ca35687b4706 Mon Sep 17 00:00:00 2001 From: Alma Dejus Date: Mon, 11 Dec 2023 10:07:39 +0100 Subject: [PATCH] cleanup in Map.cc file, Alma och Malin --- src/Map.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Map.cc b/src/Map.cc index 9b6b80d..f503f19 100644 --- a/src/Map.cc +++ b/src/Map.cc @@ -23,7 +23,8 @@ Map::Map(sf::Texture& txtr, sf::Texture& bottle_txtr, json& params) : sprite.setPosition(0,0); bottle_sprite.setScale(0.5, 0.5); - bottle_sprite.setPosition(params["collected_pos"][0], params["collected_pos"][1]); + bottle_sprite.setPosition(params["collected_pos"][0], + params["collected_pos"][1]); if ( !font.loadFromFile ("assets/fonts/Philosopher-Regular.ttf") ) throw std::invalid_argument ("Unable to load font"); @@ -34,7 +35,8 @@ Map::Map(sf::Texture& txtr, sf::Texture& bottle_txtr, json& params) : point_text.setPosition (params["points_pos"][0], params["points_pos"][1]); point_text.setFillColor(sf::Color::Black); - collected_text.setPosition (static_cast(params["collected_pos"][0]) + 40, params["collected_pos"][1]); + collected_text.setPosition (static_cast(params["collected_pos"][0]) + + 40, params["collected_pos"][1]); collected_text.setFillColor(sf::Color::Black); time_text.setPosition (params["time_pos"][0], params["time_pos"][1]); time_text.setFillColor(sf::Color::Black); -- 2.30.2