mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-18 11:19:10 +00:00
Some fixes for pnNetBase.
This commit is contained in:
@ -35,7 +35,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
|||||||
|
|
||||||
#include "pnProduct/pnProduct.h"
|
#include "pnProduct/pnProduct.h"
|
||||||
|
|
||||||
#include "pnNbConst.h"
|
#include "../pnNbConst.h"
|
||||||
#include "pnNbError.h"
|
#include "pnNbError.h"
|
||||||
#include "pnNbKeys.h"
|
#include "pnNbKeys.h"
|
||||||
#include "pnNbProtocol.h"
|
#include "pnNbProtocol.h"
|
||||||
|
@ -103,10 +103,10 @@ enum ENetError {
|
|||||||
kNumNetErrors,
|
kNumNetErrors,
|
||||||
|
|
||||||
// Net messages require ENetError to be sizeof(dword)
|
// Net messages require ENetError to be sizeof(dword)
|
||||||
kNetErrorForceDword = (dword) -1
|
kNetErrorForceDword = (dword)(-1)
|
||||||
};
|
};
|
||||||
|
|
||||||
COMPILER_ASSERT_HEADER(pnNbError, sizeof(ENetError) == sizeof(dword));
|
//COMPILER_ASSERT_HEADER(pnNbError, sizeof(ENetError) == sizeof(dword));
|
||||||
|
|
||||||
#define IS_NET_ERROR(a) (((int)(a)) > kNetSuccess)
|
#define IS_NET_ERROR(a) (((int)(a)) > kNetSuccess)
|
||||||
#define IS_NET_SUCCESS(a) (((int)(a)) == kNetSuccess)
|
#define IS_NET_SUCCESS(a) (((int)(a)) == kNetSuccess)
|
||||||
|
@ -90,7 +90,7 @@ const unsigned kBillingTypeGameTap = 1 << 1;
|
|||||||
|
|
||||||
struct AccountRoleInfo {
|
struct AccountRoleInfo {
|
||||||
unsigned Role;
|
unsigned Role;
|
||||||
char* Descriptor;
|
const char* Descriptor;
|
||||||
};
|
};
|
||||||
|
|
||||||
// Account role flags
|
// Account role flags
|
||||||
|
Reference in New Issue
Block a user