mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-17 02:51:27 +00:00
Complete the previous commit by also removing the inline min and max
functions defined in HeadSpin.h without breaking (3ds)Max compilation
This commit is contained in:
@ -2701,7 +2701,7 @@ bool LoginRequestTrans::Recv (
|
||||
m_accountFlags = reply.accountFlags;
|
||||
m_billingType = reply.billingType;
|
||||
|
||||
unsigned memSize = min(arrsize(s_encryptionKey), arrsize(reply.encryptionKey));
|
||||
unsigned memSize = std::min(arrsize(s_encryptionKey), arrsize(reply.encryptionKey));
|
||||
memSize *= sizeof(uint32_t);
|
||||
memcpy(s_encryptionKey, reply.encryptionKey, memSize);
|
||||
}
|
||||
@ -5130,7 +5130,7 @@ void NetCliAuthStartConnect (
|
||||
) {
|
||||
// TEMP: Only connect to one auth server until we fill out this module
|
||||
// to choose the "best" auth connection.
|
||||
authAddrCount = min(authAddrCount, 1);
|
||||
authAddrCount = std::min(authAddrCount, 1u);
|
||||
|
||||
for (unsigned i = 0; i < authAddrCount; ++i) {
|
||||
// Do we need to lookup the address?
|
||||
@ -5273,7 +5273,7 @@ void NetCliAuthGetEncryptionKey (
|
||||
uint32_t key[],
|
||||
unsigned size
|
||||
) {
|
||||
unsigned memSize = min(arrsize(s_encryptionKey), size);
|
||||
unsigned memSize = std::min(arrsize(s_encryptionKey), size);
|
||||
memSize *= sizeof(uint32_t);
|
||||
memcpy(key, s_encryptionKey, memSize);
|
||||
}
|
||||
|
@ -1350,7 +1350,7 @@ void NetCliFileStartConnect (
|
||||
) {
|
||||
// TEMP: Only connect to one file server until we fill out this module
|
||||
// to choose the "best" file connection.
|
||||
fileAddrCount = min(fileAddrCount, 1);
|
||||
fileAddrCount = std::min(fileAddrCount, 1u);
|
||||
s_connectBuildId = isPatcher ? kFileSrvBuildId : plProduct::BuildId();
|
||||
s_serverType = kSrvTypeNone;
|
||||
|
||||
@ -1387,7 +1387,7 @@ void NetCliFileStartConnectAsServer (
|
||||
) {
|
||||
// TEMP: Only connect to one file server until we fill out this module
|
||||
// to choose the "best" file connection.
|
||||
fileAddrCount = min(fileAddrCount, 1);
|
||||
fileAddrCount = std::min(fileAddrCount, 1u);
|
||||
s_connectBuildId = serverBuildId;
|
||||
s_serverType = serverType;
|
||||
|
||||
|
@ -1062,7 +1062,7 @@ void NetCliGateKeeperStartConnect (
|
||||
const char* gateKeeperAddrList[],
|
||||
uint32_t gateKeeperAddrCount
|
||||
) {
|
||||
gateKeeperAddrCount = min(gateKeeperAddrCount, 1);
|
||||
gateKeeperAddrCount = std::min(gateKeeperAddrCount, 1u);
|
||||
|
||||
for (unsigned i = 0; i < gateKeeperAddrCount; ++i) {
|
||||
// Do we need to lookup the address?
|
||||
|
Reference in New Issue
Block a user