From 7fc60c34baa5ba8e0a32efe69b053846a54cd583 Mon Sep 17 00:00:00 2001 From: jonylu7 Date: Fri, 14 Jun 2024 19:56:03 +0800 Subject: [PATCH] s --- include/Structure/PowerPlants.hpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/include/Structure/PowerPlants.hpp b/include/Structure/PowerPlants.hpp index 11bf0310..625298b1 100644 --- a/include/Structure/PowerPlants.hpp +++ b/include/Structure/PowerPlants.hpp @@ -15,14 +15,15 @@ class PowerPlants : public Structure { }; PowerPlants(HouseType house) - : Structure(100.F, 15.F * CHEAT, 300.F,400.F, - GameObjectID(UnitType::POWER_PLANT, house),std::make_shared(100, 0.7)){}; + : Structure(100.F, 15.F * CHEAT, 300.F, 400.F, + GameObjectID(UnitType::POWER_PLANT, house), + std::make_shared(100, 0.7)){}; void SetSpriteSheet() override { m_StructureSpriteSheet->Start( "../assets/sprites/PowerPlants_SpriteSheet.png", 48, 48, 13, 0); m_RelativeOccupiedArea = {{0, 0}, {0, 1}, {1, 0}, {1, 1}}; - m_SpriteSheetAnimation->initSpriteSheetAnimation(m_StructureSpriteSheet, - false, INTERVAL, false); + m_SpriteSheetAnimation->initSpriteSheetAnimation( + m_StructureSpriteSheet, false, INTERVAL, false); } void SetObjectLocation(glm::vec2 location) override { location = MapUtil::PositionStickToGrid(location);