From a793e933b1e7e5b62fe4e15403e1d5fb33dc2dd4 Mon Sep 17 00:00:00 2001 From: Aki Date: Wed, 6 Apr 2022 20:42:06 +0200 Subject: Removed MaxFrameLength --- StarsEx/Game.cpp | 4 ---- StarsEx/Game.h | 5 ----- StarsEx/Sim.cpp | 2 +- 3 files changed, 1 insertion(+), 10 deletions(-) (limited to 'StarsEx') 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; -- cgit v1.1