summaryrefslogtreecommitdiffhomepage
path: root/StarsEx/StarSystem.cpp
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-04-05 23:23:09 +0200
committerAki <please@ignore.pl>2022-04-05 23:23:09 +0200
commit7552ac635c39baae28de9b7c75cdc23d3547168e (patch)
tree5276ff936da8979859c2d2db93d90e91a3d4ff83 /StarsEx/StarSystem.cpp
parent3b004ab63c16f2eb783e29a35131450ba28383a3 (diff)
downloadstarshatter-7552ac635c39baae28de9b7c75cdc23d3547168e.zip
starshatter-7552ac635c39baae28de9b7c75cdc23d3547168e.tar.gz
starshatter-7552ac635c39baae28de9b7c75cdc23d3547168e.tar.bz2
Fixed campaign saving
Formatting was bad and resulted in crashes or malformed save files. Avoiding c-style cast is just an addition.
Diffstat (limited to 'StarsEx/StarSystem.cpp')
-rw-r--r--StarsEx/StarSystem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/StarsEx/StarSystem.cpp b/StarsEx/StarSystem.cpp
index 9d8e377..b31f577 100644
--- a/StarsEx/StarSystem.cpp
+++ b/StarsEx/StarSystem.cpp
@@ -70,7 +70,7 @@ void StarSystem::CalcStardate()
base_time += epoch;
}
- long double gtime = (long double) Clock::GetInstance()->GameTime() / 1000.0;
+ long double gtime = Clock::GetInstance()->GameTime<long double>() / 1000.0;
long double sdate = gtime + base_time + epoch;
stardate = sdate;