summaryrefslogtreecommitdiffhomepage
path: root/Stars45/Campaign.h
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2021-10-03 16:51:12 +0200
committerAki <please@ignore.pl>2021-10-03 16:51:12 +0200
commit104248aabf40b692231fccd1adf1a2a494f1589a (patch)
tree5eee42a18a9688b03b483aff5c2bedffb4fe8a6c /Stars45/Campaign.h
parentddd76aa4e1571c8d5965709db5c3cd47a89c9a38 (diff)
parentd2f333bf998691760b8970c2784756d0fa81e820 (diff)
downloadstarshatter-104248aabf40b692231fccd1adf1a2a494f1589a.zip
starshatter-104248aabf40b692231fccd1adf1a2a494f1589a.tar.gz
starshatter-104248aabf40b692231fccd1adf1a2a494f1589a.tar.bz2
Stars45 can now be built under MSYS2/Mingw32
Diffstat (limited to 'Stars45/Campaign.h')
-rw-r--r--Stars45/Campaign.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/Stars45/Campaign.h b/Stars45/Campaign.h
index 4465186..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,12 +295,12 @@ 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;
};
-#endif Campaign_h
+#endif // Campaign_h