diff options
author | Aki <please@ignore.pl> | 2022-04-06 20:42:06 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-04-06 20:42:06 +0200 |
commit | a793e933b1e7e5b62fe4e15403e1d5fb33dc2dd4 (patch) | |
tree | c2fac26c912a5ee5ade2f360157d9e3e30057055 /StarsEx | |
parent | 7682c8205d389c8a44da84b6f42dc986a8ac3773 (diff) | |
download | starshatter-a793e933b1e7e5b62fe4e15403e1d5fb33dc2dd4.zip starshatter-a793e933b1e7e5b62fe4e15403e1d5fb33dc2dd4.tar.gz starshatter-a793e933b1e7e5b62fe4e15403e1d5fb33dc2dd4.tar.bz2 |
Removed MaxFrameLength
Diffstat (limited to 'StarsEx')
-rw-r--r-- | StarsEx/Game.cpp | 4 | ||||
-rw-r--r-- | StarsEx/Game.h | 5 | ||||
-rw-r--r-- | StarsEx/Sim.cpp | 2 |
3 files changed, 1 insertions, 10 deletions
diff --git a/StarsEx/Game.cpp b/StarsEx/Game.cpp index a127bb8..272dd17 100644 --- a/StarsEx/Game.cpp +++ b/StarsEx/Game.cpp @@ -27,8 +27,6 @@ Game* game = 0; -const double MAX_FRAME_TIME_NORMAL = 1.0 / 5.0; - // +--------------------------------------------------------------------+ Game::Game() : @@ -46,8 +44,6 @@ Game::Game() : server = false; show_mouse = false; frame_number = 0; - - max_frame_length = MAX_FRAME_TIME_NORMAL; } else status = TOO_MANY; diff --git a/StarsEx/Game.h b/StarsEx/Game.h index 2625e13..2aa1df7 100644 --- a/StarsEx/Game.h +++ b/StarsEx/Game.h @@ -60,9 +60,6 @@ public: DWORD Frame(); - void SetMaxFrameLength(double seconds) { max_frame_length = seconds; } - double GetMaxFrameLength() { return max_frame_length; } - bool Active() { return active; } bool Paused() { return paused; } bool Server() { return server; } @@ -88,8 +85,6 @@ protected: bool server; bool show_mouse; DWORD frame_number; - - double max_frame_length; }; // +--------------------------------------------------------------------+ diff --git a/StarsEx/Sim.cpp b/StarsEx/Sim.cpp index 7249d82..d57a56b 100644 --- a/StarsEx/Sim.cpp +++ b/StarsEx/Sim.cpp @@ -2509,7 +2509,7 @@ SimRegion::ExecFrame(double secs) // DON'T REALLY KNOW WHAT PURPOSE THIS SERVES.... if (!active) { - double max_frame = 3 * Game::GetInstance()->GetMaxFrameLength(); + double max_frame = 3.0 / 5.0; // Value is based on already removed legacy constants. long new_time = Clock::GetInstance()->GameTime(); double delta = new_time - sim_time; seconds = delta / 1000.0; |