1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-18 03:09:13 +00:00

Deprecate and remove NEWZERO macro

This commit is contained in:
2013-01-04 21:32:48 -08:00
parent b574a583f4
commit bc0d04da48
55 changed files with 455 additions and 385 deletions

View File

@ -158,9 +158,8 @@ static void INetErrorCallback (
) {
NetClientDestroy(false);
plNetClientMgrMsg * msg = NEWZERO(plNetClientMgrMsg);
msg->type = plNetClientMgrMsg::kCmdDisableNet;
msg->yes = true;
plNetClientMgrMsg * msg = new plNetClientMgrMsg(plNetClientMgrMsg::kCmdDisableNet,
true, nil);
msg->AddReceiver(plNetClientApp::GetInstance()->GetKey());
switch (error)
@ -259,7 +258,7 @@ static void INotifyAuthConnectedCallback () {
if (!hsgResMgr::ResMgr())
return;
plNetCommAuthConnectedMsg * msg = NEWZERO(plNetCommAuthConnectedMsg);
plNetCommAuthConnectedMsg * msg = new plNetCommAuthConnectedMsg;
msg->Send();
}
@ -535,7 +534,7 @@ static void INetCliAuthGetPublicAgeListCallback (
) {
NetCommParam * cp = (NetCommParam *) param;
plNetCommPublicAgeListMsg * msg = NEWZERO(plNetCommPublicAgeListMsg);
plNetCommPublicAgeListMsg * msg = new plNetCommPublicAgeListMsg;
msg->result = result;
msg->param = cp->param;
msg->ptype = cp->type;

View File

@ -80,7 +80,7 @@ struct NetCommPlayer {
struct NetCommAccount {
plUUID accountUuid;
wchar_t accountName[kMaxAccountNameLength];
wchar_t accountName[kMaxAccountNameLength];
ShaDigest accountNamePassHash;
char accountNameAnsi[kMaxAccountNameLength];
unsigned accountFlags;
@ -92,6 +92,12 @@ struct NetCommAge {
unsigned ageVaultId;
char ageDatasetName[kMaxAgeNameLength];
char spawnPtName[64];
NetCommAge() : ageVaultId(0)
{
memset(ageDatasetName, 0, sizeof(ageDatasetName));
memset(spawnPtName, 0, sizeof(spawnPtName));
}
};
const NetCommAge * NetCommGetAge ();