mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-17 10:52:46 +00:00
Merge pull request #273 from 'paradox/clang'
Conflicts: Sources/Tools/MaxConvert/Pch.h Sources/Tools/MaxConvert/hsControlConverter.cpp
This commit is contained in:
@ -559,7 +559,7 @@ int plNetClientMgr::Update(double secs)
|
||||
//
|
||||
void plNetClientMgr::ICheckPendingStateLoad(double secs)
|
||||
{
|
||||
if (!fPendingLoads.empty() && GetFlagsBit( kPlayingGame ) || (GetFlagsBit(kLoadingInitialAgeState) && !GetFlagsBit(kNeedInitialAgeStateCount)))
|
||||
if ((!fPendingLoads.empty() && GetFlagsBit(kPlayingGame)) || (GetFlagsBit(kLoadingInitialAgeState) && !GetFlagsBit(kNeedInitialAgeStateCount)))
|
||||
{
|
||||
PendingLoadsList::iterator it = fPendingLoads.begin();
|
||||
while ( it!=fPendingLoads.end() )
|
||||
@ -1135,8 +1135,8 @@ plString plNetClientMgr::GetPlayerNameById (unsigned playerId) const {
|
||||
unsigned plNetClientMgr::GetPlayerIdByName (const plString & name) const {
|
||||
// local case
|
||||
if (0 == name.Compare(NetCommGetPlayer()->playerNameAnsi))
|
||||
NetCommGetPlayer()->playerInt;
|
||||
|
||||
return NetCommGetPlayer()->playerInt;
|
||||
|
||||
unsigned n = TransportMgr().GetNumMembers();
|
||||
for (unsigned i = 0; i < n; ++i)
|
||||
if (plNetTransportMember * member = TransportMgr().GetMember(i))
|
||||
|
@ -157,7 +157,7 @@ void plNetClientMgr::ISendCCRPetition(plCCRPetitionMsg* petMsg)
|
||||
info.AddValue( "Petition", "Language", plLocalization::GetLanguageName( plLocalization::GetLanguage() ) );
|
||||
info.AddValue( "Petition", "AcctName", NetCommGetAccount()->accountNameAnsi );
|
||||
char buffy[20];
|
||||
sprintf( buffy, "%lu", GetPlayerID() );
|
||||
sprintf(buffy, "%u", GetPlayerID());
|
||||
info.AddValue( "Petition", "PlayerID", buffy );
|
||||
info.AddValue( "Petition", "PlayerName", GetPlayerName() );
|
||||
|
||||
|
@ -41,7 +41,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
*==LICENSE==*/
|
||||
|
||||
#include <algorithm>
|
||||
#include <float.h>
|
||||
#include <cfloat>
|
||||
#include "hsMatrix44.h"
|
||||
#include "hsGeometry3.h"
|
||||
#include "plNetClientMgr.h"
|
||||
|
@ -267,6 +267,9 @@ void plNetLinkingMgr::ExecNextOp () {
|
||||
);
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
s_opqueue.remove(op);
|
||||
@ -1098,7 +1101,7 @@ uint8_t plNetLinkingMgr::IPreProcessLink(void)
|
||||
info,
|
||||
&childLink))
|
||||
{
|
||||
case hsFail:
|
||||
case static_cast<uint8_t>(hsFail):
|
||||
success = kLinkFailed;
|
||||
break;
|
||||
case false:
|
||||
|
@ -286,14 +286,14 @@ void plNetObjectDebugger::LogMsgIfMatch(const char* msg) const
|
||||
|
||||
char objName[128];
|
||||
int i=0;
|
||||
|
||||
|
||||
// copy objName token
|
||||
while(*c && *c != ',' && *c != ' ' && i<127)
|
||||
objName[i++] = *c++;
|
||||
objName[i++] = *c++;
|
||||
objName[i]=0;
|
||||
|
||||
DebugObjectList::const_iterator it = fDebugObjects.begin();
|
||||
for( objName[0]; it != fDebugObjects.end(); it++)
|
||||
for(; it != fDebugObjects.end(); it++)
|
||||
{
|
||||
if ((*it) && (*it)->StringMatches(objName))
|
||||
{
|
||||
|
Reference in New Issue
Block a user