chore(misc): Mordenize maths (#17273)
This commit is contained in:
@@ -41,13 +41,6 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if AC_COMPILER == AC_COMPILER_MICROSOFT
|
|
||||||
#define atoll _atoi64
|
|
||||||
#define llabs _abs64
|
|
||||||
#else
|
|
||||||
#define stricmp strcasecmp
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define STRINGIZE(a) #a
|
#define STRINGIZE(a) #a
|
||||||
|
|
||||||
#define MAX_NETCLIENT_PACKET_SIZE (32767 - 1) // Client hardcap: int16 with trailing zero space otherwise crash on memory free
|
#define MAX_NETCLIENT_PACKET_SIZE (32767 - 1) // Client hardcap: int16 with trailing zero space otherwise crash on memory free
|
||||||
|
|||||||
@@ -564,7 +564,7 @@ void WorldSocket::HandleAuthSessionCallback(std::shared_ptr<AuthSession> authSes
|
|||||||
//! Negative mutetime indicates amount of minutes to be muted effective on next login - which is now.
|
//! Negative mutetime indicates amount of minutes to be muted effective on next login - which is now.
|
||||||
if (account.MuteTime < 0)
|
if (account.MuteTime < 0)
|
||||||
{
|
{
|
||||||
account.MuteTime = GameTime::GetGameTime().count() + llabs(account.MuteTime);
|
account.MuteTime = GameTime::GetGameTime().count() + std::llabs(account.MuteTime);
|
||||||
|
|
||||||
auto* stmt = LoginDatabase.GetPreparedStatement(LOGIN_UPD_MUTE_TIME_LOGIN);
|
auto* stmt = LoginDatabase.GetPreparedStatement(LOGIN_UPD_MUTE_TIME_LOGIN);
|
||||||
stmt->SetData(0, account.MuteTime);
|
stmt->SetData(0, account.MuteTime);
|
||||||
|
|||||||
Reference in New Issue
Block a user