mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-18 11:19:10 +00:00
Remove useless ref macro, since it conflicts with VS2010's libraries.
The compiler warnings will have to be cleaned up later (without the use of a silly macro)
This commit is contained in:
@ -41,8 +41,8 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
|
||||
#define kNeighborhoodAgeFilename "Neighborhood"
|
||||
#define kNeighborhoodAgeFilenameW L"Neighborhood"
|
||||
#define kNeighborhoodAgeInstanceName "Hood"
|
||||
#define kNeighborhoodAgeInstanceNameW L"Hood"
|
||||
#define kNeighborhoodAgeInstanceName "Bevin"
|
||||
#define kNeighborhoodAgeInstanceNameW L"Bevin"
|
||||
#define kStartupNeighborhoodUserDefinedName "DRC"
|
||||
#define kStartupNeighborhoodUserDefinedNameW L"DRC"
|
||||
|
||||
|
@ -1533,8 +1533,6 @@ static void AsyncLookupCallback (
|
||||
unsigned addrCount,
|
||||
const NetAddress addrs[]
|
||||
) {
|
||||
ref(param);
|
||||
|
||||
if (!addrCount) {
|
||||
ReportNetError(kNetProtocolCli2Auth, kNetErrNameLookupFailed);
|
||||
return;
|
||||
@ -1988,9 +1986,6 @@ static bool Recv_KickedOff (
|
||||
unsigned bytes,
|
||||
void * param
|
||||
) {
|
||||
ref(bytes);
|
||||
ref(param);
|
||||
|
||||
const Auth2Cli_KickedOff & msg = *(const Auth2Cli_KickedOff *)buffer;
|
||||
|
||||
ReportNetError(kNetProtocolCli2Auth, msg.reason);
|
||||
@ -2521,8 +2516,6 @@ bool PingRequestTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
|
||||
const Auth2Cli_PingReply & reply = *(const Auth2Cli_PingReply *)msg;
|
||||
|
||||
m_payload.Set(reply.payload, reply.payloadBytes);
|
||||
@ -2584,8 +2577,6 @@ bool AccountExistsRequestTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
|
||||
const Auth2Cli_AccountExistsReply & reply = *(const Auth2Cli_AccountExistsReply *)msg;
|
||||
|
||||
m_exists = reply.exists;
|
||||
@ -2693,8 +2684,6 @@ bool LoginRequestTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
|
||||
dword msgId = (dword)*msg;
|
||||
switch (msgId) {
|
||||
case kAuth2Cli_AcctPlayerInfo: {
|
||||
@ -2782,7 +2771,6 @@ bool AgeRequestTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
const Auth2Cli_AgeReply & reply = *(const Auth2Cli_AgeReply *) msg;
|
||||
m_gameSrvNode = reply.gameSrvNode;
|
||||
m_ageMcpId = reply.ageMcpId;
|
||||
@ -2855,7 +2843,6 @@ bool AccountCreateRequestTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
const Auth2Cli_AcctCreateReply & reply = *(const Auth2Cli_AcctCreateReply *) msg;
|
||||
|
||||
m_result = reply.result;
|
||||
@ -2927,7 +2914,6 @@ bool AccountCreateFromKeyRequestTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
const Auth2Cli_AcctCreateFromKeyReply & reply = *(const Auth2Cli_AcctCreateFromKeyReply *) msg;
|
||||
|
||||
m_result = reply.result;
|
||||
@ -2995,7 +2981,6 @@ bool PlayerCreateRequestTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
const Auth2Cli_PlayerCreateReply & reply = *(const Auth2Cli_PlayerCreateReply *) msg;
|
||||
if (!IS_NET_ERROR(reply.result)) {
|
||||
m_playerInfo.playerInt = reply.playerInt;
|
||||
@ -3162,7 +3147,6 @@ bool SetPlayerRequestTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
const Auth2Cli_AcctSetPlayerReply & reply = *(const Auth2Cli_AcctSetPlayerReply *) msg;
|
||||
m_result = reply.result;
|
||||
m_state = kTransStateComplete;
|
||||
@ -3224,7 +3208,6 @@ bool AccountChangePasswordRequestTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
const Auth2Cli_AcctChangePasswordReply & reply = *(const Auth2Cli_AcctChangePasswordReply *) msg;
|
||||
|
||||
m_result = reply.result;
|
||||
@ -3280,7 +3263,6 @@ bool GetPublicAgeListTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
const Auth2Cli_PublicAgeList & reply = *(const Auth2Cli_PublicAgeList *) msg;
|
||||
|
||||
if (IS_NET_SUCCESS(reply.result))
|
||||
@ -3342,7 +3324,6 @@ bool AccountSetRolesRequestTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
const Auth2Cli_AcctSetRolesReply & reply = *(const Auth2Cli_AcctSetRolesReply *) msg;
|
||||
|
||||
m_result = reply.result;
|
||||
@ -3400,7 +3381,6 @@ bool AccountSetBillingTypeRequestTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
const Auth2Cli_AcctSetBillingTypeReply & reply = *(const Auth2Cli_AcctSetBillingTypeReply *) msg;
|
||||
|
||||
m_result = reply.result;
|
||||
@ -3455,7 +3435,6 @@ bool AccountActivateRequestTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
const Auth2Cli_AcctActivateReply & reply = *(const Auth2Cli_AcctActivateReply *) msg;
|
||||
|
||||
m_result = reply.result;
|
||||
@ -3510,7 +3489,6 @@ bool FileListRequestTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
const Auth2Cli_FileListReply & reply = *(const Auth2Cli_FileListReply *) msg;
|
||||
|
||||
dword wcharCount = reply.wcharCount;
|
||||
@ -3626,7 +3604,6 @@ bool FileDownloadRequestTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
const Auth2Cli_FileDownloadChunk & reply = *(const Auth2Cli_FileDownloadChunk *) msg;
|
||||
|
||||
if (IS_NET_ERROR(reply.result)) {
|
||||
@ -3961,8 +3938,6 @@ bool VaultFetchNodeTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
|
||||
const Auth2Cli_VaultNodeFetched & reply = *(const Auth2Cli_VaultNodeFetched *) msg;
|
||||
|
||||
if (IS_NET_SUCCESS(reply.result)) {
|
||||
@ -4039,8 +4014,6 @@ bool VaultFindNodeTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
|
||||
const Auth2Cli_VaultNodeFindReply & reply = *(const Auth2Cli_VaultNodeFindReply *) msg;
|
||||
|
||||
if (IS_NET_SUCCESS(reply.result)) {
|
||||
@ -4109,8 +4082,6 @@ bool VaultCreateNodeTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
|
||||
const Auth2Cli_VaultNodeCreated & reply = *(const Auth2Cli_VaultNodeCreated *) msg;
|
||||
|
||||
if (IS_NET_SUCCESS(reply.result))
|
||||
@ -4179,8 +4150,6 @@ bool VaultSaveNodeTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
|
||||
const Auth2Cli_VaultSaveNodeReply & reply = *(const Auth2Cli_VaultSaveNodeReply *) msg;
|
||||
|
||||
m_result = reply.result;
|
||||
@ -4244,8 +4213,6 @@ bool VaultAddNodeTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
|
||||
const Auth2Cli_VaultAddNodeReply & reply = *(const Auth2Cli_VaultAddNodeReply *) msg;
|
||||
|
||||
m_result = reply.result;
|
||||
@ -4306,8 +4273,6 @@ bool VaultRemoveNodeTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
|
||||
const Auth2Cli_VaultRemoveNodeReply & reply = *(const Auth2Cli_VaultRemoveNodeReply *) msg;
|
||||
|
||||
m_result = reply.result;
|
||||
@ -4379,7 +4344,6 @@ bool SetPlayerBanStatusRequestTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
const Auth2Cli_SetPlayerBanStatusReply & reply = *(const Auth2Cli_SetPlayerBanStatusReply *) msg;
|
||||
|
||||
m_result = reply.result;
|
||||
@ -4437,7 +4401,6 @@ bool ChangePlayerNameRequestTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
const Auth2Cli_ChangePlayerNameReply & reply = *(const Auth2Cli_ChangePlayerNameReply *) msg;
|
||||
|
||||
m_result = reply.result;
|
||||
@ -4499,7 +4462,6 @@ bool SendFriendInviteTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
const Auth2Cli_SendFriendInviteReply & reply = *(const Auth2Cli_SendFriendInviteReply *) msg;
|
||||
|
||||
m_result = reply.result;
|
||||
@ -4590,7 +4552,6 @@ bool ScoreCreateTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
const Auth2Cli_ScoreCreateReply & reply = *(const Auth2Cli_ScoreCreateReply *) msg;
|
||||
|
||||
m_scoreId = reply.scoreId;
|
||||
@ -4650,7 +4611,6 @@ bool ScoreDeleteTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
const Auth2Cli_ScoreDeleteReply & reply = *(const Auth2Cli_ScoreDeleteReply *) msg;
|
||||
|
||||
m_result = reply.result;
|
||||
@ -4717,7 +4677,6 @@ bool ScoreGetScoresTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
const Auth2Cli_ScoreGetScoresReply & reply = *(const Auth2Cli_ScoreGetScoresReply *) msg;
|
||||
|
||||
if (reply.scoreCount > 0) {
|
||||
@ -4793,7 +4752,6 @@ bool ScoreAddPointsTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
const Auth2Cli_ScoreAddPointsReply & reply = *(const Auth2Cli_ScoreAddPointsReply *) msg;
|
||||
|
||||
m_result = reply.result;
|
||||
@ -4856,7 +4814,6 @@ bool ScoreTransferPointsTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
const Auth2Cli_ScoreTransferPointsReply & reply = *(const Auth2Cli_ScoreTransferPointsReply *) msg;
|
||||
|
||||
m_result = reply.result;
|
||||
@ -4916,7 +4873,6 @@ bool ScoreSetPointsTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
const Auth2Cli_ScoreSetPointsReply & reply = *(const Auth2Cli_ScoreSetPointsReply *) msg;
|
||||
|
||||
m_result = reply.result;
|
||||
@ -4997,7 +4953,6 @@ bool ScoreGetRanksTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
const Auth2Cli_ScoreGetRanksReply & reply = *(const Auth2Cli_ScoreGetRanksReply *) msg;
|
||||
|
||||
if (reply.rankCount > 0) {
|
||||
@ -5693,7 +5648,6 @@ unsigned NetCliAuthVaultNodeSave (
|
||||
void NetCliAuthVaultNodeDelete (
|
||||
unsigned nodeId
|
||||
) {
|
||||
ref(nodeId);
|
||||
hsAssert(false, "eric, implement me");
|
||||
}
|
||||
|
||||
@ -5826,7 +5780,6 @@ void NetCliAuthSetRecvBufferHandler (
|
||||
void NetCliAuthSendCCRPetition (
|
||||
const wchar * petitionText
|
||||
) {
|
||||
ref(petitionText);
|
||||
hsAssert(false, "eric, implement me.");
|
||||
}
|
||||
|
||||
|
@ -547,8 +547,6 @@ static void AsyncLookupCallback (
|
||||
unsigned addrCount,
|
||||
const NetAddress addrs[]
|
||||
) {
|
||||
ref(param);
|
||||
|
||||
if (!addrCount) {
|
||||
ReportNetError(kNetProtocolCli2File, kNetErrNameLookupFailed);
|
||||
return;
|
||||
@ -777,7 +775,6 @@ void CliFileConn::Dispatch (const Cli2File_MsgHeader * msg) {
|
||||
bool CliFileConn::Recv_PingReply (
|
||||
const File2Cli_PingReply * msg
|
||||
) {
|
||||
ref(msg);
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -858,7 +855,6 @@ bool BuildIdRequestTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
const File2Cli_BuildIdReply & reply = *(const File2Cli_BuildIdReply *) msg;
|
||||
|
||||
if (IS_NET_ERROR(reply.result)) {
|
||||
@ -944,7 +940,6 @@ bool ManifestRequestTrans::Recv (
|
||||
) {
|
||||
m_timeoutAtMs = TimeGetMs() + NetTransGetTimeoutMs(); // Reset the timeout counter
|
||||
|
||||
ref(bytes);
|
||||
const File2Cli_ManifestReply & reply = *(const File2Cli_ManifestReply *) msg;
|
||||
|
||||
dword numFiles = reply.numFiles;
|
||||
@ -1157,7 +1152,6 @@ bool DownloadRequestTrans::Recv (
|
||||
) {
|
||||
m_timeoutAtMs = TimeGetMs() + NetTransGetTimeoutMs(); // Reset the timeout counter
|
||||
|
||||
ref(bytes);
|
||||
const File2Cli_FileDownloadReply & reply = *(const File2Cli_FileDownloadReply *) msg;
|
||||
|
||||
dword byteCount = reply.byteCount;
|
||||
|
@ -414,9 +414,6 @@ static bool Recv_PingReply (
|
||||
unsigned bytes,
|
||||
void * param
|
||||
) {
|
||||
ref(msg);
|
||||
ref(bytes);
|
||||
ref(param);
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -426,9 +423,6 @@ static bool Recv_JoinAgeReply (
|
||||
unsigned bytes,
|
||||
void * param
|
||||
) {
|
||||
ref(bytes);
|
||||
ref(param);
|
||||
|
||||
const Game2Cli_JoinAgeReply & reply = *(const Game2Cli_JoinAgeReply *)msg;
|
||||
if (sizeof(reply) != bytes)
|
||||
return false;
|
||||
@ -444,9 +438,6 @@ static bool Recv_PropagateBuffer (
|
||||
unsigned bytes,
|
||||
void * param
|
||||
) {
|
||||
ref(bytes);
|
||||
ref(param);
|
||||
|
||||
const Game2Cli_PropagateBuffer & reply = *(const Game2Cli_PropagateBuffer *)msg;
|
||||
|
||||
RcvdPropagatedBufferTrans * trans = NEW(RcvdPropagatedBufferTrans);
|
||||
@ -465,9 +456,6 @@ static bool Recv_GameMgrMsg (
|
||||
unsigned bytes,
|
||||
void * param
|
||||
) {
|
||||
ref(bytes);
|
||||
ref(param);
|
||||
|
||||
const Game2Cli_GameMgrMsg & reply = *(const Game2Cli_GameMgrMsg *)msg;
|
||||
|
||||
RcvdGameMgrMsgTrans * trans = NEW(RcvdGameMgrMsgTrans);
|
||||
@ -555,8 +543,6 @@ bool JoinAgeRequestTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
|
||||
const Game2Cli_JoinAgeReply & reply = *(const Game2Cli_JoinAgeReply *) msg;
|
||||
m_result = reply.result;
|
||||
m_state = kTransStateComplete;
|
||||
|
@ -472,8 +472,6 @@ static void AsyncLookupCallback (
|
||||
unsigned addrCount,
|
||||
const NetAddress addrs[]
|
||||
) {
|
||||
ref(param);
|
||||
|
||||
if (!addrCount) {
|
||||
ReportNetError(kNetProtocolCli2GateKeeper, kNetErrNameLookupFailed);
|
||||
return;
|
||||
@ -802,8 +800,6 @@ bool PingRequestTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
|
||||
const GateKeeper2Cli_PingReply & reply = *(const GateKeeper2Cli_PingReply *)msg;
|
||||
|
||||
m_payload.Set(reply.payload, reply.payloadBytes);
|
||||
@ -866,8 +862,6 @@ bool FileSrvIpAddressRequestTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
|
||||
const GateKeeper2Cli_FileSrvIpAddressReply & reply = *(const GateKeeper2Cli_FileSrvIpAddressReply *)msg;
|
||||
|
||||
|
||||
@ -926,8 +920,6 @@ bool AuthSrvIpAddressRequestTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
|
||||
const GateKeeper2Cli_AuthSrvIpAddressReply & reply = *(const GateKeeper2Cli_AuthSrvIpAddressReply *)msg;
|
||||
|
||||
m_result = kNetSuccess;
|
||||
|
Reference in New Issue
Block a user