From 3be3bfaa17773550a696ed2b756136debfe79ae2 Mon Sep 17 00:00:00 2001 From: Aki Date: Mon, 1 Apr 2024 05:16:14 +0200 Subject: Fixed date and time consistency across Campaigns and Missions This fixes campaign mission generation mostly, but a full playthrough will be needed. Missions now serialize and accept stardate setting a bit better. Thanks to this, date is propagated over multiplayer, too. This seems to break points system? Code-wise, this does not workaround the problems from before namely over-reliance on side-effects. Stardate class is at least one small step into good direction. Now, it'd be nice to attach clocks to simulation and campaign and whatever else that needs them. --- StarsEx/StarSystem.h | 5 ----- 1 file changed, 5 deletions(-) (limited to 'StarsEx/StarSystem.h') diff --git a/StarsEx/StarSystem.h b/StarsEx/StarSystem.h index bdd37ec..6770f4a 100644 --- a/StarsEx/StarSystem.h +++ b/StarsEx/StarSystem.h @@ -78,10 +78,6 @@ public: void SetActiveRegion(OrbitalRegion* rgn); - 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; } void SetSunlight(Color color, double brightness=1); @@ -109,7 +105,6 @@ protected: int affiliation; int seq; Point loc; - static long double stardate; double radius; bool instantiated; -- cgit v1.1