summaryrefslogtreecommitdiffhomepage
path: root/Stars45
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-02-16 21:42:55 +0100
committerAki <please@ignore.pl>2022-02-16 21:42:55 +0100
commit084d3b4e049bf1014088772bc79559fd3b06fd11 (patch)
tree30f5cd3868804505d1653ade1829e0e0b7e48eee /Stars45
parent13f2e2c1152c3a5e2ba75f5df86c5926a2e845df (diff)
downloadstarshatter-084d3b4e049bf1014088772bc79559fd3b06fd11.zip
starshatter-084d3b4e049bf1014088772bc79559fd3b06fd11.tar.gz
starshatter-084d3b4e049bf1014088772bc79559fd3b06fd11.tar.bz2
Removed game loop outside of game class
Diffstat (limited to 'Stars45')
-rw-r--r--Stars45/Game.cpp7
-rw-r--r--Stars45/Game.h3
2 files changed, 1 insertions, 9 deletions
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;