From 1eb8da84d77d0c865623421069ec38bfc7b0d461 Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Sat, 1 Jul 2023 03:41:47 +0100 Subject: game actually works now --- src/T2DLL/T2DateTime.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/T2DLL/T2DateTime.h') 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(); } -- cgit v1.2.3