From 084d3b4e049bf1014088772bc79559fd3b06fd11 Mon Sep 17 00:00:00 2001 From: Aki Date: Wed, 16 Feb 2022 21:42:55 +0100 Subject: Removed game loop outside of game class --- Stars45/Game.cpp | 7 +------ Stars45/Game.h | 3 --- 2 files changed, 1 insertion(+), 9 deletions(-) (limited to 'Stars45') diff --git a/Stars45/Game.cpp b/Stars45/Game.cpp index e7fcf7f..ad364d7 100644 --- a/Stars45/Game.cpp +++ b/Stars45/Game.cpp @@ -836,7 +836,7 @@ Game::Run() DispatchMessage(&msg); } else { - if (ProfileGameLoop()) + if (GameLoop()) WaitMessage(); } } @@ -897,11 +897,6 @@ Game::Pause(bool f) // +--------------------------------------------------------------------+ -bool ProfileGameLoop(void) -{ - return game->GameLoop(); -} - bool Game::GameLoop() { diff --git a/Stars45/Game.h b/Stars45/Game.h index 557fc7c..aade28b 100644 --- a/Stars45/Game.h +++ b/Stars45/Game.h @@ -24,8 +24,6 @@ int GetKey(); int GetKeyPlus(int& key, int& shift); void ProcessKeyMessage(); -extern "C" bool ProfileGameLoop(void); - // +--------------------------------------------------------------------+ class ContentBundle; @@ -135,7 +133,6 @@ public: virtual void ShowStats(); protected: - friend bool ProfileGameLoop(void); friend LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM uParam, LPARAM lParam); ContentBundle* content; -- cgit v1.1