diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-03 13:34:27 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-03 13:34:27 +0100 |
commit | 2585dc3cab48ccad0cfa0c63354662d656c86c46 (patch) | |
tree | 579851837f35842e5ed682c912c470d68df79183 /mwe/gameloop | |
parent | 5deb950619dff9dde8b49520b23e3ce4001afbee (diff) |
`make format`
Diffstat (limited to 'mwe/gameloop')
-rw-r--r-- | mwe/gameloop/include/loopManager.h | 2 | ||||
-rw-r--r-- | mwe/gameloop/src/loopManager.cpp | 9 |
2 files changed, 4 insertions, 7 deletions
diff --git a/mwe/gameloop/include/loopManager.h b/mwe/gameloop/include/loopManager.h index e2c2e2c..7d37253 100644 --- a/mwe/gameloop/include/loopManager.h +++ b/mwe/gameloop/include/loopManager.h @@ -17,7 +17,7 @@ private: void fixedUpdate(); void render(); bool gameRunning = false; - WindowManager* window; + WindowManager * window; int timeScale = 1; float accumulator = 0.0; double currentTime; diff --git a/mwe/gameloop/src/loopManager.cpp b/mwe/gameloop/src/loopManager.cpp index b075bd8..49d65fb 100644 --- a/mwe/gameloop/src/loopManager.cpp +++ b/mwe/gameloop/src/loopManager.cpp @@ -1,11 +1,8 @@ #include "loopManager.h" #include "timer.h" -LoopManager::LoopManager() { - this->window = new WindowManager(); - -} -LoopManager::~LoopManager(){ - for(GameObject* object : this->objectList){ +LoopManager::LoopManager() { this->window = new WindowManager(); } +LoopManager::~LoopManager() { + for (GameObject * object : this->objectList) { delete object; } delete this->window; |