From b8018588d27e84fb6679ec22aa907bdfdc8b6e88 Mon Sep 17 00:00:00 2001 From: Aki Date: Sat, 2 Oct 2021 19:08:17 +0200 Subject: Fixed annoying warning regarding extras in endif --- Stars45/StarSystem.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Stars45/StarSystem.h') diff --git a/Stars45/StarSystem.h b/Stars45/StarSystem.h index 75a0abe..295b07b 100644 --- a/Stars45/StarSystem.h +++ b/Stars45/StarSystem.h @@ -342,5 +342,5 @@ protected: List links; }; -#endif StarSystem_h +#endif // StarSystem_h -- cgit v1.1 From d2fc3ad2272f7cc850ef95fbe803c10e8746ad86 Mon Sep 17 00:00:00 2001 From: Aki Date: Sat, 2 Oct 2021 21:34:32 +0200 Subject: Switched to long doubles instead of doing manual FPU manipulation --- Stars45/StarSystem.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Stars45/StarSystem.h') diff --git a/Stars45/StarSystem.h b/Stars45/StarSystem.h index 295b07b..90b77df 100644 --- a/Stars45/StarSystem.h +++ b/Stars45/StarSystem.h @@ -102,9 +102,9 @@ public: void SetActiveRegion(OrbitalRegion* rgn); - static void SetBaseTime(double t, bool absolute=false); - static double GetBaseTime(); - static double Stardate() { return stardate; } + static void SetBaseTime(long double t, bool absolute=false); + static long double GetBaseTime(); + static long double Stardate() { return stardate; } static void CalcStardate(); double Radius() const { return radius; } @@ -133,7 +133,7 @@ protected: int affiliation; int seq; Point loc; - static double stardate; + static long double stardate; double radius; bool instantiated; -- cgit v1.1