mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-12-31 12:47:10 +01:00
finish quest log and fix bug that expiring storage does not fit in int32 so changed to store time in minutes instead of ms
This commit is contained in:
@@ -108,4 +108,9 @@ inline int64_t OTSYS_TIME()
|
||||
return std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now().time_since_epoch()).count();
|
||||
}
|
||||
|
||||
inline int32_t OTSYS_TIME_MINUTES()
|
||||
{
|
||||
return std::chrono::duration_cast<std::chrono::minutes>(std::chrono::system_clock::now().time_since_epoch()).count();
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user