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

Fix several errors and warnings from GCC compilation

This commit is contained in:
2012-02-09 00:56:03 -08:00
parent e6ebf7ffaf
commit ad66286a17
78 changed files with 318 additions and 331 deletions

View File

@ -875,7 +875,7 @@ static void FileSrvIpAddressCallback (
***/
//============================================================================
const NetCommPlayer * const NetCommGetPlayer () {
const NetCommPlayer * NetCommGetPlayer () {
static NetCommPlayer s_nilPlayer;
return s_player ? s_player : &s_nilPlayer;
}
@ -891,7 +891,7 @@ unsigned NetCommGetPlayerCount () {
}
//============================================================================
const NetCommAccount * const NetCommGetAccount () {
const NetCommAccount * NetCommGetAccount () {
return &s_account;
}
@ -901,12 +901,12 @@ bool NetCommIsLoginComplete() {
}
//============================================================================
const NetCommAge * const NetCommGetAge () {
const NetCommAge * NetCommGetAge () {
return &s_age;
}
//============================================================================
const NetCommAge * const NetCommGetStartupAge () {
const NetCommAge * NetCommGetStartupAge () {
return &s_startupAge;
}

View File

@ -94,10 +94,10 @@ struct NetCommAge {
char spawnPtName[64];
};
const NetCommAge * const NetCommGetAge ();
const NetCommAge * const NetCommGetStartupAge ();
const NetCommAccount * const NetCommGetAccount ();
const NetCommPlayer * const NetCommGetPlayer ();
const NetCommAge * NetCommGetAge ();
const NetCommAge * NetCommGetStartupAge ();
const NetCommAccount * NetCommGetAccount ();
const NetCommPlayer * NetCommGetPlayer ();
const ARRAY(NetCommPlayer) & NetCommGetPlayerList ();
unsigned NetCommGetPlayerCount ();
bool NetCommIsLoginComplete ();