summaryrefslogtreecommitdiff
path: root/application
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-01-02 20:28:24 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2022-01-02 20:28:24 +0000
commit4bf6b8dad9923d6f3687e8ced72a4eda6a56220d (patch)
treea3110d4f7dafae89ace66c5812a77330da53160a /application
parentReplace include guard macros with pragma once (diff)
downloadilt-4bf6b8dad9923d6f3687e8ced72a4eda6a56220d.tar.bz2
ilt-4bf6b8dad9923d6f3687e8ced72a4eda6a56220d.tar.xz
ilt-4bf6b8dad9923d6f3687e8ced72a4eda6a56220d.zip
No need to pass GameState around, it has a global pointer
Diffstat (limited to 'application')
-rw-r--r--application/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/application/main.cpp b/application/main.cpp
index eef0ed0..3abcc83 100644
--- a/application/main.cpp
+++ b/application/main.cpp
@@ -59,7 +59,7 @@ public:
geoData->generateRandom();
Windows windows;
- windows.create<GameMainWindow>(DISPLAY_WIDTH, DISPLAY_HEIGHT, this);
+ windows.create<GameMainWindow>(DISPLAY_WIDTH, DISPLAY_HEIGHT);
world.create<Terrain>(geoData);
@@ -104,7 +104,7 @@ public:
world.apply(&WorldObject::tick, t_passed);
windows.apply(&Window::tick, t_passed);
- windows.apply(&Window::refresh, this);
+ windows.apply(&Window::refresh);
t_start = t_end;
}