aboutsummaryrefslogtreecommitdiff
path: root/mwe/gameloop
diff options
context:
space:
mode:
Diffstat (limited to 'mwe/gameloop')
-rw-r--r--mwe/gameloop/include/loopManager.h2
-rw-r--r--mwe/gameloop/src/loopManager.cpp9
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;