diff options
author | Ash Wolf <ninji@wuffs.org> | 2023-07-01 03:41:47 +0100 |
---|---|---|
committer | Ash Wolf <ninji@wuffs.org> | 2023-07-01 03:41:47 +0100 |
commit | 1eb8da84d77d0c865623421069ec38bfc7b0d461 (patch) | |
tree | f0938d2b8bd10338eedc0809acc2b8d7e6021e7d /src/T2DLL/T2DateTime.h | |
parent | 5c6a48b2ff362a70416a6a00fda7d06e0f276f2d (diff) | |
download | t2win-1eb8da84d77d0c865623421069ec38bfc7b0d461.tar.gz t2win-1eb8da84d77d0c865623421069ec38bfc7b0d461.zip |
game actually works now
Diffstat (limited to '')
-rw-r--r-- | src/T2DLL/T2DateTime.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/T2DLL/T2DateTime.h b/src/T2DLL/T2DateTime.h index 7104fe9..aae18d4 100644 --- a/src/T2DLL/T2DateTime.h +++ b/src/T2DLL/T2DateTime.h @@ -59,13 +59,13 @@ public: protected: int AdjustMinutes(int m) const; - friend BOOL operator>=(const T2DateTime &a, const T2DateTime &b); + friend BOOL operator<=(const T2DateTime &a, const T2DateTime &b); unsigned int CalcTotalCount() const { return mSeconds + ((mYear * 12 + mMonth) * 1440 + mRawMinutes) * 4; } }; -inline BOOL operator>=(const T2DateTime &a, const T2DateTime &b) { - return a.CalcTotalCount() >= b.CalcTotalCount(); +inline BOOL operator<=(const T2DateTime &a, const T2DateTime &b) { + return a.CalcTotalCount() <= b.CalcTotalCount(); } |