summaryrefslogtreecommitdiffhomepage
path: root/Stars45/Campaign.h
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2021-10-02 21:34:32 +0200
committerAki <please@ignore.pl>2021-10-02 21:34:32 +0200
commitd2fc3ad2272f7cc850ef95fbe803c10e8746ad86 (patch)
tree988f56af14d52ff2452ea7bb2da06a11736afa39 /Stars45/Campaign.h
parent03bdf9c0fe25d3d9e765c13a2d18048088c3a3a0 (diff)
downloadstarshatter-d2fc3ad2272f7cc850ef95fbe803c10e8746ad86.zip
starshatter-d2fc3ad2272f7cc850ef95fbe803c10e8746ad86.tar.gz
starshatter-d2fc3ad2272f7cc850ef95fbe803c10e8746ad86.tar.bz2
Switched to long doubles instead of doing manual FPU manipulation
Diffstat (limited to 'Stars45/Campaign.h')
-rw-r--r--Stars45/Campaign.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/Stars45/Campaign.h b/Stars45/Campaign.h
index a993e84..ecfa236 100644
--- a/Stars45/Campaign.h
+++ b/Stars45/Campaign.h
@@ -213,13 +213,13 @@ public:
void SetMissionId(int id);
int GetMissionId() const { return mission_id; }
Bitmap* GetImage(int n) { return &image[n]; }
- double GetTime() const { return time; }
- double GetStartTime() const { return startTime; }
- void SetStartTime(double t) { startTime = t; }
- double GetLoadTime() const { return loadTime; }
- void SetLoadTime(double t) { loadTime = t; }
- double GetUpdateTime() const { return updateTime; }
- void SetUpdateTime(double t) { updateTime = t; }
+ long double GetTime() const { return time; }
+ long double GetStartTime() const { return startTime; }
+ void SetStartTime(long double t) { startTime = t; }
+ long double GetLoadTime() const { return loadTime; }
+ void SetLoadTime(long double t) { loadTime = t; }
+ long double GetUpdateTime() const { return updateTime; }
+ void SetUpdateTime(long double t) { updateTime = t; }
bool InCutscene() const;
bool IsDynamic() const;
@@ -246,7 +246,7 @@ public:
static Campaign* SelectCampaign(const char* name);
static Campaign* CreateCustomCampaign(const char* name, const char* path);
- static double Stardate();
+ static long double Stardate();
protected:
void LoadCampaign(DataLoader* loader, bool full=false);
@@ -295,10 +295,10 @@ protected:
Mission* mission;
Mission* net_mission;
- double time;
- double loadTime;
- double startTime;
- double updateTime;
+ long double time;
+ long double loadTime;
+ long double startTime;
+ long double updateTime;
int lockout;
};