diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-01-02 20:28:24 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-01-02 20:28:24 +0000 |
commit | 4bf6b8dad9923d6f3687e8ced72a4eda6a56220d (patch) | |
tree | a3110d4f7dafae89ace66c5812a77330da53160a /application/main.cpp | |
parent | Replace include guard macros with pragma once (diff) | |
download | ilt-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/main.cpp')
-rw-r--r-- | application/main.cpp | 4 |
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; } |