From a80a4f25fe4f7b235443c87ff840e5e06a41290e Mon Sep 17 00:00:00 2001 From: Aki Date: Mon, 7 Mar 2022 23:32:17 +0100 Subject: Removed minimum frame length from Game --- Stars45/Game.cpp | 2 -- Stars45/Game.h | 3 --- 2 files changed, 5 deletions(-) (limited to 'Stars45') diff --git a/Stars45/Game.cpp b/Stars45/Game.cpp index 82b20d8..6d91489 100644 --- a/Stars45/Game.cpp +++ b/Stars45/Game.cpp @@ -33,7 +33,6 @@ Game* game = 0; const int VIDEO_FPS = 30; const double MAX_FRAME_TIME_VIDEO = 1.0 / (double) VIDEO_FPS; const double MAX_FRAME_TIME_NORMAL = 1.0 / 5.0; -const double MIN_FRAME_TIME_NORMAL = 1.0 / 60.0; static LARGE_INTEGER perf_freq; static LARGE_INTEGER perf_cnt1; @@ -61,7 +60,6 @@ Game::Game() frame_number = 0; max_frame_length = MAX_FRAME_TIME_NORMAL; - min_frame_length = MIN_FRAME_TIME_NORMAL; video_settings = new(__FILE__,__LINE__) VideoSettings; diff --git a/Stars45/Game.h b/Stars45/Game.h index 694a905..5ce1756 100644 --- a/Stars45/Game.h +++ b/Stars45/Game.h @@ -87,9 +87,7 @@ public: double FrameTime(); double GUITime(); void SetMaxFrameLength(double seconds) { max_frame_length = seconds; } - void SetMinFrameLength(double seconds) { min_frame_length = seconds; } double GetMaxFrameLength() { return max_frame_length; } - double GetMinFrameLength() { return min_frame_length; } Video* GetVideo(); Color GetScreenColor(); @@ -188,7 +186,6 @@ protected: DWORD frame_number; double max_frame_length; - double min_frame_length; }; // +--------------------------------------------------------------------+ -- cgit v1.1