From 4bf6b8dad9923d6f3687e8ced72a4eda6a56220d Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 2 Jan 2022 20:28:24 +0000 Subject: No need to pass GameState around, it has a global pointer --- application/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'application') 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(DISPLAY_WIDTH, DISPLAY_HEIGHT, this); + windows.create(DISPLAY_WIDTH, DISPLAY_HEIGHT); world.create(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; } -- cgit v1.2.3