mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-20 20:29:10 +00:00
Merge msvc10 into cursors2
This commit is contained in:
@ -218,12 +218,12 @@ void plAgeDescription::SetAgeNameFromPath( const char *path )
|
||||
}
|
||||
|
||||
// Construct our name from the path
|
||||
char *pathSep1 = strrchr( path, '\\' );
|
||||
char *pathSep2 = strrchr( path, '/' );
|
||||
const char *pathSep1 = strrchr( path, '\\' );
|
||||
const char *pathSep2 = strrchr( path, '/' );
|
||||
if( pathSep2 > pathSep1 )
|
||||
pathSep1 = pathSep2;
|
||||
if( pathSep1 == nil )
|
||||
pathSep1 = (char *)path;
|
||||
pathSep1 = path;
|
||||
else
|
||||
pathSep1++; // Get past the actual character we found
|
||||
|
||||
|
@ -39,7 +39,6 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
Mead, WA 99021
|
||||
|
||||
*==LICENSE==*/
|
||||
#include <hvdi.h>
|
||||
#include <direct.h>
|
||||
#include "HeadSpin.h"
|
||||
#include "hsGeometry3.h"
|
||||
|
@ -258,10 +258,10 @@ void plAGAnimInstance::DetachChannels()
|
||||
do {
|
||||
plAGChannel *channel = (*i).second;
|
||||
channelMod->DetachChannel(channel);
|
||||
} while (i != fManualDetachChannels.end() && (*++i).first == channelName);
|
||||
} while (++i != fManualDetachChannels.end() && i->first == channelName);
|
||||
} else {
|
||||
do {
|
||||
} while (i != fManualDetachChannels.end() && (*++i).first == channelName);
|
||||
} while (++i != fManualDetachChannels.end() && i->first == channelName);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -161,6 +161,9 @@ protected:
|
||||
plSimulationInterface * IGetSI(const plAGModifier *modifier) const;
|
||||
plObjInterface * IGetGI(const plAGModifier *modifier, UInt16 classIdx) const;
|
||||
|
||||
// Allow plAGModifier to declare IGet?? as friends
|
||||
friend class plAGModifier;
|
||||
|
||||
// -- members --
|
||||
plAGChannel *fChannel;
|
||||
hsBool fEnabled;
|
||||
|
@ -244,9 +244,8 @@ plAGChannel * plAGModifier::MergeChannel(plAGApplicator *app,
|
||||
hsBool plAGModifier::DetachChannel(plAGChannel * channel)
|
||||
{
|
||||
plAppTable::iterator i = fApps.begin();
|
||||
hsBool done = false;
|
||||
|
||||
for( ; i != fApps.end(); i++)
|
||||
while( i != fApps.end() )
|
||||
{
|
||||
plAGApplicator *app = *i;
|
||||
plAGChannel *existingChannel = app->GetChannel();
|
||||
@ -259,17 +258,16 @@ hsBool plAGModifier::DetachChannel(plAGChannel * channel)
|
||||
app->SetChannel(replacementChannel);
|
||||
if( ! replacementChannel && app->AutoDelete())
|
||||
{
|
||||
plAppTable::iterator old = i;
|
||||
i--;
|
||||
fApps.erase(old);
|
||||
// Don't need to adjust the iterator since we're about to exit the loop
|
||||
fApps.erase(i);
|
||||
delete app;
|
||||
}
|
||||
done = true;
|
||||
break;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
++i;
|
||||
}
|
||||
return done;
|
||||
return false;
|
||||
}
|
||||
|
||||
// READ
|
||||
|
@ -133,8 +133,12 @@ void plWalkingController::RecalcVelocity(double timeNow, double timePrev, hsBool
|
||||
|
||||
if (fController && !fWalkingStrategy->IsOnGround())
|
||||
{
|
||||
// PhysX Hack
|
||||
// LinearVelocity is always (0,0,0) outside the PhysController
|
||||
fImpactTime = fWalkingStrategy->GetAirTime();
|
||||
fImpactVelocity = fController->GetLinearVelocity();
|
||||
fImpactVelocity = fController->GetAchievedLinearVelocity();
|
||||
// convert orientation from subworld to avatar-local coordinates
|
||||
fImpactVelocity = (hsVector3)fController->GetLocalRotation().Rotate(&fImpactVelocity);
|
||||
fClearImpact = false;
|
||||
}
|
||||
else
|
||||
|
@ -1232,24 +1232,21 @@ hsBool plClothingOutfit::MsgReceive(plMessage* msg)
|
||||
if (fAvatar && fGroup != plClothingMgr::kClothingBaseNoOptions)
|
||||
{
|
||||
plDrawable *spans = fAvatar->FindDrawable();
|
||||
const hsBounds3Ext &bnds = spans->GetWorldBounds();
|
||||
if (bnds.GetType() == kBoundsNormal)
|
||||
{
|
||||
// This is a bit hacky... The drawable code has just run through and updated
|
||||
// each span's bounds (see plDrawableSpans::IUpdateMatrixPaletteBoundsHack())
|
||||
// but not the world bounds for the entire drawable. So we tell the space tree
|
||||
// to refresh. However, the pageTreeMgr would then get confused because the
|
||||
// space tree is no longer dirty (see plPageTreeMgr::IRefreshTree()),
|
||||
// causing the avatar to only draw if the origin is in view.
|
||||
// So we just force it dirty, and everyone's happy.
|
||||
spans->GetSpaceTree()->Refresh();
|
||||
spans->GetSpaceTree()->MakeDirty();
|
||||
// This is a bit hacky... The drawable code has just run through and updated
|
||||
// each span's bounds (see plDrawableSpans::IUpdateMatrixPaletteBoundsHack())
|
||||
// but not the world bounds for the entire drawable. So we tell the space tree
|
||||
// to refresh. However, the pageTreeMgr would then get confused because the
|
||||
// space tree is no longer dirty (see plPageTreeMgr::IRefreshTree()),
|
||||
// causing the avatar to only draw if the origin is in view.
|
||||
// So we just force it dirty, and everyone's happy.
|
||||
spans->GetSpaceTree()->Refresh();
|
||||
spans->GetSpaceTree()->MakeDirty();
|
||||
|
||||
// Where were we? Oh yeah... if this avatar is in view it needs a texture. Tell
|
||||
// the pipeline.
|
||||
if (preMsg->Pipeline()->TestVisibleWorld(spans->GetSpaceTree()->GetWorldBounds()))
|
||||
preMsg->Pipeline()->SubmitClothingOutfit(this);
|
||||
}
|
||||
// Where were we? Oh yeah... if this avatar is in view it needs a texture. Tell
|
||||
// the pipeline.
|
||||
const hsBounds3Ext &bnds = spans->GetSpaceTree()->GetWorldBounds();
|
||||
if ((bnds.GetType() == kBoundsNormal) && preMsg->Pipeline()->TestVisibleWorld(bnds))
|
||||
preMsg->Pipeline()->SubmitClothingOutfit(this);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -440,7 +440,7 @@ hsBool plAvAnimTask::Start(plArmatureMod *avatar, plArmatureBrain *brain, double
|
||||
}
|
||||
|
||||
// PROCESS
|
||||
plAvAnimTask::Process(plArmatureMod *avatar, plArmatureBrain *brain, double time, hsScalar elapsed)
|
||||
hsBool plAvAnimTask::Process(plArmatureMod *avatar, plArmatureBrain *brain, double time, hsScalar elapsed)
|
||||
{
|
||||
// the only reason we need this function is to watch the animation until it fades out
|
||||
hsBool result = false;
|
||||
@ -664,7 +664,7 @@ hsBool plAvOneShotTask::Start(plArmatureMod *avatar, plArmatureBrain *brain, dou
|
||||
}
|
||||
|
||||
// PROCESS
|
||||
plAvOneShotTask::Process(plArmatureMod *avatar, plArmatureBrain *brain, double time, hsScalar elapsed)
|
||||
hsBool plAvOneShotTask::Process(plArmatureMod *avatar, plArmatureBrain *brain, double time, hsScalar elapsed)
|
||||
{
|
||||
// *** if we are under mouse control, adjust it here
|
||||
|
||||
|
@ -250,7 +250,7 @@ plMatrixTimeScale::~plMatrixTimeScale()
|
||||
|
||||
// IsStoppedAt ----------------------------
|
||||
// ------------
|
||||
plMatrixTimeScale::IsStoppedAt(double time)
|
||||
hsBool plMatrixTimeScale::IsStoppedAt(double time)
|
||||
{
|
||||
return fTimeSource->IsStoppedAt(time);
|
||||
}
|
||||
|
@ -147,6 +147,7 @@ public:
|
||||
virtual void CheckAndHandleAnyStateChanges();
|
||||
virtual void UpdateSubstepNonPhysical();
|
||||
virtual const hsPoint3& GetLocalPosition()=0;
|
||||
const hsQuat& GetLocalRotation() { return fLocalRotation; }
|
||||
virtual void MoveActorToSim();
|
||||
|
||||
virtual void OverrideAchievedVelocity(hsVector3 newAchievedVel)
|
||||
|
@ -173,7 +173,7 @@ plPointTimeScale::~plPointTimeScale()
|
||||
|
||||
// IsStoppedAt ---------------------------
|
||||
// ------------
|
||||
plPointTimeScale::IsStoppedAt(double time)
|
||||
hsBool plPointTimeScale::IsStoppedAt(double time)
|
||||
{
|
||||
return fTimeSource->IsStoppedAt(time);
|
||||
}
|
||||
|
@ -186,7 +186,7 @@ plQuatTimeScale::~plQuatTimeScale()
|
||||
{
|
||||
}
|
||||
|
||||
plQuatTimeScale::IsStoppedAt(double time)
|
||||
hsBool plQuatTimeScale::IsStoppedAt(double time)
|
||||
{
|
||||
return fTimeSource->IsStoppedAt(time);
|
||||
}
|
||||
|
@ -196,7 +196,7 @@ plScalarTimeScale::~plScalarTimeScale()
|
||||
{
|
||||
}
|
||||
|
||||
plScalarTimeScale::IsStoppedAt(double time)
|
||||
hsBool plScalarTimeScale::IsStoppedAt(double time)
|
||||
{
|
||||
return fTimeSource->IsStoppedAt(time);
|
||||
}
|
||||
|
@ -0,0 +1,113 @@
|
||||
/*==LICENSE==*
|
||||
|
||||
CyanWorlds.com Engine - MMOG client, server and tools
|
||||
Copyright (C) 2011 Cyan Worlds, Inc.
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Additional permissions under GNU GPL version 3 section 7
|
||||
|
||||
If you modify this Program, or any covered work, by linking or
|
||||
combining it with any of RAD Game Tools Bink SDK, Autodesk 3ds Max SDK,
|
||||
NVIDIA PhysX SDK, Microsoft DirectX SDK, OpenSSL library, Independent
|
||||
JPEG Group JPEG library, Microsoft Windows Media SDK, or Apple QuickTime SDK
|
||||
(or a modified version of those libraries),
|
||||
containing parts covered by the terms of the Bink SDK EULA, 3ds Max EULA,
|
||||
PhysX SDK EULA, DirectX SDK EULA, OpenSSL and SSLeay licenses, IJG
|
||||
JPEG Library README, Windows Media SDK EULA, or QuickTime SDK EULA, the
|
||||
licensors of this Program grant you additional
|
||||
permission to convey the resulting work. Corresponding Source for a
|
||||
non-source form of such a combination shall include the source code for
|
||||
the parts of OpenSSL and IJG JPEG Library used as well as that of the covered
|
||||
work.
|
||||
|
||||
You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
or by snail mail at:
|
||||
Cyan Worlds, Inc.
|
||||
14617 N Newport Hwy
|
||||
Mead, WA 99021
|
||||
|
||||
*==LICENSE==*/
|
||||
|
||||
#include "HeadSpin.h"
|
||||
#include "plClipboard.h"
|
||||
|
||||
plClipboard& plClipboard::GetInstance()
|
||||
{
|
||||
static plClipboard theInstance;
|
||||
return theInstance;
|
||||
}
|
||||
|
||||
bool plClipboard::IsTextInClipboard()
|
||||
{
|
||||
#ifdef HS_BUILD_FOR_WIN32
|
||||
return ::IsClipboardFormatAvailable(CF_UNICODETEXT);
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
wchar_t* plClipboard::GetClipboardText()
|
||||
{
|
||||
if (!IsTextInClipboard())
|
||||
return nil;
|
||||
|
||||
#ifdef HS_BUILD_FOR_WIN32
|
||||
if (!::OpenClipboard(NULL))
|
||||
return nil;
|
||||
|
||||
HANDLE clipboardData = ::GetClipboardData(CF_UNICODETEXT);
|
||||
size_t size = ::GlobalSize(clipboardData) / sizeof(wchar_t);
|
||||
wchar_t* clipboardDataPtr = (wchar_t*)::GlobalLock(clipboardData);
|
||||
|
||||
wchar_t* result = new wchar_t[size];
|
||||
wcsncpy(result, clipboardDataPtr, size);
|
||||
|
||||
::GlobalUnlock(clipboardData);
|
||||
::CloseClipboard();
|
||||
|
||||
return result;
|
||||
#else
|
||||
return plString::Null;
|
||||
#endif
|
||||
}
|
||||
|
||||
void plClipboard::SetClipboardText(const wchar_t* text)
|
||||
{
|
||||
if (text == nil)
|
||||
return;
|
||||
#ifdef HS_BUILD_FOR_WIN32
|
||||
size_t len = wcslen(text);
|
||||
|
||||
if (len == 0)
|
||||
return;
|
||||
|
||||
HGLOBAL copy = ::GlobalAlloc(GMEM_MOVEABLE, (len + 1) * sizeof(wchar_t));
|
||||
if (copy == NULL)
|
||||
return;
|
||||
|
||||
if (!::OpenClipboard(NULL))
|
||||
return;
|
||||
|
||||
::EmptyClipboard();
|
||||
|
||||
wchar_t* target = (wchar_t*)::GlobalLock(copy);
|
||||
wcsncpy(target, text, len + 1);
|
||||
::GlobalUnlock(copy);
|
||||
|
||||
::SetClipboardData(CF_UNICODETEXT, copy);
|
||||
::CloseClipboard();
|
||||
#endif
|
||||
}
|
||||
|
@ -0,0 +1,62 @@
|
||||
/*==LICENSE==*
|
||||
|
||||
CyanWorlds.com Engine - MMOG client, server and tools
|
||||
Copyright (C) 2011 Cyan Worlds, Inc.
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Additional permissions under GNU GPL version 3 section 7
|
||||
|
||||
If you modify this Program, or any covered work, by linking or
|
||||
combining it with any of RAD Game Tools Bink SDK, Autodesk 3ds Max SDK,
|
||||
NVIDIA PhysX SDK, Microsoft DirectX SDK, OpenSSL library, Independent
|
||||
JPEG Group JPEG library, Microsoft Windows Media SDK, or Apple QuickTime SDK
|
||||
(or a modified version of those libraries),
|
||||
containing parts covered by the terms of the Bink SDK EULA, 3ds Max EULA,
|
||||
PhysX SDK EULA, DirectX SDK EULA, OpenSSL and SSLeay licenses, IJG
|
||||
JPEG Library README, Windows Media SDK EULA, or QuickTime SDK EULA, the
|
||||
licensors of this Program grant you additional
|
||||
permission to convey the resulting work. Corresponding Source for a
|
||||
non-source form of such a combination shall include the source code for
|
||||
the parts of OpenSSL and IJG JPEG Library used as well as that of the covered
|
||||
work.
|
||||
|
||||
You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
or by snail mail at:
|
||||
Cyan Worlds, Inc.
|
||||
14617 N Newport Hwy
|
||||
Mead, WA 99021
|
||||
|
||||
*==LICENSE==*/
|
||||
|
||||
#ifndef _plClipboard_h
|
||||
#define _plClipboard_h
|
||||
|
||||
//// Class Definition /////////////////////////////////////////////////////////
|
||||
|
||||
class plClipboard
|
||||
{
|
||||
private:
|
||||
|
||||
plClipboard() {}
|
||||
plClipboard(const plClipboard& rhs) {}
|
||||
|
||||
public:
|
||||
bool IsTextInClipboard();
|
||||
wchar_t* GetClipboardText();
|
||||
void SetClipboardText(const wchar_t* text);
|
||||
static plClipboard& GetInstance( void );
|
||||
};
|
||||
|
||||
#endif // _Clipboard_h
|
@ -1651,7 +1651,7 @@ plMipmap* plWaveSet7::ICreateBumpMipmapPS()
|
||||
// const int sizeV = kCompositeSize;
|
||||
const int sizeV = 1;
|
||||
|
||||
const kNumLevels = 8; // must be log2(kCompositeSize)
|
||||
const int kNumLevels = 8; // must be log2(kCompositeSize)
|
||||
hsAssert(kCompositeSize == (1 << kNumLevels), "Mismatch on size and num mip levels");
|
||||
|
||||
if( !fCosineLUT )
|
||||
|
@ -55,7 +55,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
#include "hsWindows.h"
|
||||
|
||||
#include <ddraw.h>
|
||||
#include <d3d.h>
|
||||
#include <d3d9.h>
|
||||
|
||||
#include "hsTypes.h"
|
||||
#include "hsDXTDirectXCodec.h"
|
||||
|
@ -336,22 +336,22 @@ void plFont::IRenderString( plMipmap *mip, UInt16 x, UInt16 y, const wchar_t *st
|
||||
// Choose an optimal rendering function
|
||||
fRenderInfo.fRenderFunc = nil;
|
||||
if( justCalc )
|
||||
fRenderInfo.fRenderFunc = IRenderCharNull;
|
||||
fRenderInfo.fRenderFunc = &plFont::IRenderCharNull;
|
||||
else if( mip->GetPixelSize() == 32 )
|
||||
{
|
||||
if( fBPP == 1 )
|
||||
fRenderInfo.fRenderFunc = ( fRenderInfo.fFlags & kRenderScaleAA ) ? IRenderChar1To32AA : IRenderChar1To32;
|
||||
fRenderInfo.fRenderFunc = ( fRenderInfo.fFlags & kRenderScaleAA ) ? &plFont::IRenderChar1To32AA : &plFont::IRenderChar1To32;
|
||||
else if( fBPP == 8 )
|
||||
{
|
||||
if( fRenderInfo.fFlags & kRenderIntoAlpha )
|
||||
{
|
||||
if( ( fRenderInfo.fColor & 0xff000000 ) != 0xff000000 )
|
||||
fRenderInfo.fRenderFunc = IRenderChar8To32Alpha;
|
||||
fRenderInfo.fRenderFunc = &plFont::IRenderChar8To32Alpha;
|
||||
else
|
||||
fRenderInfo.fRenderFunc = IRenderChar8To32FullAlpha;
|
||||
fRenderInfo.fRenderFunc = &plFont::IRenderChar8To32FullAlpha;
|
||||
}
|
||||
else
|
||||
fRenderInfo.fRenderFunc = IRenderChar8To32;
|
||||
fRenderInfo.fRenderFunc = &plFont::IRenderChar8To32;
|
||||
}
|
||||
}
|
||||
|
||||
@ -537,7 +537,7 @@ void plFont::IRenderString( plMipmap *mip, UInt16 x, UInt16 y, const wchar_t *st
|
||||
|
||||
fRenderInfo.fX = 0;
|
||||
CharRenderFunc oldFunc = fRenderInfo.fRenderFunc;
|
||||
fRenderInfo.fRenderFunc = IRenderCharNull;
|
||||
fRenderInfo.fRenderFunc = &plFont::IRenderCharNull;
|
||||
|
||||
IRenderLoop( string, lastWord );
|
||||
|
||||
@ -559,7 +559,7 @@ void plFont::IRenderString( plMipmap *mip, UInt16 x, UInt16 y, const wchar_t *st
|
||||
|
||||
fRenderInfo.fX = 0;
|
||||
CharRenderFunc oldFunc = fRenderInfo.fRenderFunc;
|
||||
fRenderInfo.fRenderFunc = IRenderCharNull;
|
||||
fRenderInfo.fRenderFunc = &plFont::IRenderCharNull;
|
||||
|
||||
IRenderLoop( string, lastWord );
|
||||
|
||||
@ -658,7 +658,7 @@ void plFont::IRenderString( plMipmap *mip, UInt16 x, UInt16 y, const wchar_t *st
|
||||
{
|
||||
// Advance left past any clipping area
|
||||
CharRenderFunc oldFunc = fRenderInfo.fRenderFunc;
|
||||
fRenderInfo.fRenderFunc = IRenderCharNull;
|
||||
fRenderInfo.fRenderFunc = &plFont::IRenderCharNull;
|
||||
while( fRenderInfo.fX < fRenderInfo.fClipRect.fX && *string != 0 )
|
||||
{
|
||||
IRenderLoop( string, 1 );
|
||||
|
@ -108,7 +108,7 @@ void plLODMipmap::SetLOD(int lod)
|
||||
{
|
||||
hsAssert(fBase, "UnInitialized");
|
||||
|
||||
const kMaxLOD = 5;
|
||||
const int kMaxLOD = 5;
|
||||
if( lod > kMaxLOD )
|
||||
lod = kMaxLOD;
|
||||
if( lod >= fBase->GetNumLevels() )
|
||||
|
@ -207,7 +207,7 @@ UInt32 plMipmap::Read( hsStream *s )
|
||||
|
||||
// Decide to clamp if we were told to
|
||||
int clampBy = fGlobalNumLevelsToChop;
|
||||
const kMaxSkipLevels = 1;
|
||||
const int kMaxSkipLevels = 1;
|
||||
if( clampBy > kMaxSkipLevels )
|
||||
clampBy = kMaxSkipLevels;
|
||||
if( fFlags & kNoMaxSize )
|
||||
|
@ -288,7 +288,7 @@ plMipmap *plJPEG::IRead( hsStream *inStream )
|
||||
#else
|
||||
while( cinfo.output_scanline < cinfo.output_height )
|
||||
{
|
||||
UInt8 *startp = newMipmap->GetAddr8( 0, cinfo.output_scanline );
|
||||
UInt8 *startp = (UInt8*)newMipmap->GetAddr32( 0, cinfo.output_scanline );
|
||||
(void) jpeg_read_scanlines( &cinfo, &startp, 1 );
|
||||
}
|
||||
#endif
|
||||
@ -439,7 +439,7 @@ hsBool plJPEG::IWrite( plMipmap *source, hsStream *outStream )
|
||||
#else
|
||||
while( cinfo.next_scanline < cinfo.image_height )
|
||||
{
|
||||
UInt8 *startp = source->GetAddr8( 0, cinfo.next_scanline );
|
||||
UInt8 *startp = (UInt8*)source->GetAddr32( 0, cinfo.next_scanline );
|
||||
(void) jpeg_write_scanlines( &cinfo, &startp, 1 );
|
||||
}
|
||||
jpeg_finish_compress( &cinfo );
|
||||
|
@ -99,7 +99,10 @@ public:
|
||||
{
|
||||
std::set<OwnedGroup>::iterator it=IFind(grpId);
|
||||
if (it != fGroups.end())
|
||||
(*it).fOwnIt=ownIt;
|
||||
{
|
||||
fGroups.erase(it);
|
||||
fGroups.insert(OwnedGroup(grpId, ownIt));
|
||||
}
|
||||
else
|
||||
{
|
||||
ISetGroupDesc(grpId);
|
||||
|
@ -275,7 +275,7 @@ void plNetObjectDebugger::LogMsgIfMatch(const char* msg) const
|
||||
std::string tmp = msg;
|
||||
hsStrLower((char*)tmp.c_str());
|
||||
std::string objTag="object";
|
||||
char* c=strstr(tmp.c_str(), objTag.c_str());
|
||||
const char* c=strstr(tmp.c_str(), objTag.c_str());
|
||||
if (c && c != tmp.c_str())
|
||||
{
|
||||
c+=objTag.size();
|
||||
|
@ -448,7 +448,7 @@ static void INetCliAuthCreatePlayerRequestCallback (
|
||||
void * param,
|
||||
const NetCliAuthPlayerInfo & playerInfo
|
||||
) {
|
||||
ref(param);
|
||||
REF(param);
|
||||
|
||||
if (IS_NET_ERROR(result)) {
|
||||
LogMsg(kLogDebug, L"Create player failed: %s", NetErrorToString(result));
|
||||
@ -522,7 +522,7 @@ static void INetCliAuthChangePasswordCallback (
|
||||
ENetError result,
|
||||
void * param
|
||||
) {
|
||||
ref(param);
|
||||
REF(param);
|
||||
|
||||
if (IS_NET_ERROR(result)) {
|
||||
LogMsg(kLogDebug, L"Change password failed: %s", NetErrorToString(result));
|
||||
|
@ -82,7 +82,7 @@ void plNetClientRecorder::IMakeFilename(const char* recName, char* path)
|
||||
CreateDirectory(path, NULL);
|
||||
#endif
|
||||
|
||||
char* lastDot = strrchr(recName, '.');
|
||||
const char* lastDot = strrchr(recName, '.');
|
||||
if (lastDot)
|
||||
strncat(path, recName, lastDot-recName);
|
||||
else
|
||||
|
@ -47,6 +47,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
#include "../pnNetCommon/plGenericVar.h"
|
||||
#include "../plCompression/plZlibCompress.h"
|
||||
#include <algorithm>
|
||||
#include <iterator>
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
@ -1241,7 +1241,8 @@ static ENetError FixupPlayerName (wchar * name) {
|
||||
// Trim leading and trailing whitespace and convert
|
||||
// multiple internal spaces into only one space
|
||||
unsigned nonSpaceChars = 0;
|
||||
for (wchar *src = name, *dst = name; *src; ) {
|
||||
wchar *dst = name;
|
||||
for (wchar *src = name; *src; ) {
|
||||
// Skip whitespace
|
||||
while (*src && ICharIsSpace(*src))
|
||||
src++;
|
||||
@ -1549,7 +1550,7 @@ static void AsyncLookupCallback (
|
||||
unsigned addrCount,
|
||||
const NetAddress addrs[]
|
||||
) {
|
||||
ref(param);
|
||||
REF(param);
|
||||
|
||||
if (!addrCount) {
|
||||
ReportNetError(kNetProtocolCli2Auth, kNetErrNameLookupFailed);
|
||||
@ -2004,8 +2005,8 @@ static bool Recv_KickedOff (
|
||||
unsigned bytes,
|
||||
void * param
|
||||
) {
|
||||
ref(bytes);
|
||||
ref(param);
|
||||
REF(bytes);
|
||||
REF(param);
|
||||
|
||||
const Auth2Cli_KickedOff & msg = *(const Auth2Cli_KickedOff *)buffer;
|
||||
|
||||
@ -2537,7 +2538,7 @@ bool PingRequestTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
REF(bytes);
|
||||
|
||||
const Auth2Cli_PingReply & reply = *(const Auth2Cli_PingReply *)msg;
|
||||
|
||||
@ -2600,7 +2601,7 @@ bool AccountExistsRequestTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
REF(bytes);
|
||||
|
||||
const Auth2Cli_AccountExistsReply & reply = *(const Auth2Cli_AccountExistsReply *)msg;
|
||||
|
||||
@ -2709,7 +2710,7 @@ bool LoginRequestTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
REF(bytes);
|
||||
|
||||
dword msgId = (dword)*msg;
|
||||
switch (msgId) {
|
||||
@ -2798,7 +2799,7 @@ bool AgeRequestTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
REF(bytes);
|
||||
const Auth2Cli_AgeReply & reply = *(const Auth2Cli_AgeReply *) msg;
|
||||
m_gameSrvNode = reply.gameSrvNode;
|
||||
m_ageMcpId = reply.ageMcpId;
|
||||
@ -2871,7 +2872,7 @@ bool AccountCreateRequestTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
REF(bytes);
|
||||
const Auth2Cli_AcctCreateReply & reply = *(const Auth2Cli_AcctCreateReply *) msg;
|
||||
|
||||
m_result = reply.result;
|
||||
@ -2943,7 +2944,7 @@ bool AccountCreateFromKeyRequestTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
REF(bytes);
|
||||
const Auth2Cli_AcctCreateFromKeyReply & reply = *(const Auth2Cli_AcctCreateFromKeyReply *) msg;
|
||||
|
||||
m_result = reply.result;
|
||||
@ -3011,7 +3012,7 @@ bool PlayerCreateRequestTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
REF(bytes);
|
||||
const Auth2Cli_PlayerCreateReply & reply = *(const Auth2Cli_PlayerCreateReply *) msg;
|
||||
if (!IS_NET_ERROR(reply.result)) {
|
||||
m_playerInfo.playerInt = reply.playerInt;
|
||||
@ -3178,7 +3179,7 @@ bool SetPlayerRequestTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
REF(bytes);
|
||||
const Auth2Cli_AcctSetPlayerReply & reply = *(const Auth2Cli_AcctSetPlayerReply *) msg;
|
||||
m_result = reply.result;
|
||||
m_state = kTransStateComplete;
|
||||
@ -3240,7 +3241,7 @@ bool AccountChangePasswordRequestTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
REF(bytes);
|
||||
const Auth2Cli_AcctChangePasswordReply & reply = *(const Auth2Cli_AcctChangePasswordReply *) msg;
|
||||
|
||||
m_result = reply.result;
|
||||
@ -3296,7 +3297,7 @@ bool GetPublicAgeListTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
REF(bytes);
|
||||
const Auth2Cli_PublicAgeList & reply = *(const Auth2Cli_PublicAgeList *) msg;
|
||||
|
||||
if (IS_NET_SUCCESS(reply.result))
|
||||
@ -3358,7 +3359,7 @@ bool AccountSetRolesRequestTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
REF(bytes);
|
||||
const Auth2Cli_AcctSetRolesReply & reply = *(const Auth2Cli_AcctSetRolesReply *) msg;
|
||||
|
||||
m_result = reply.result;
|
||||
@ -3416,7 +3417,7 @@ bool AccountSetBillingTypeRequestTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
REF(bytes);
|
||||
const Auth2Cli_AcctSetBillingTypeReply & reply = *(const Auth2Cli_AcctSetBillingTypeReply *) msg;
|
||||
|
||||
m_result = reply.result;
|
||||
@ -3471,7 +3472,7 @@ bool AccountActivateRequestTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
REF(bytes);
|
||||
const Auth2Cli_AcctActivateReply & reply = *(const Auth2Cli_AcctActivateReply *) msg;
|
||||
|
||||
m_result = reply.result;
|
||||
@ -3526,7 +3527,7 @@ bool FileListRequestTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
REF(bytes);
|
||||
const Auth2Cli_FileListReply & reply = *(const Auth2Cli_FileListReply *) msg;
|
||||
|
||||
dword wcharCount = reply.wcharCount;
|
||||
@ -3642,7 +3643,7 @@ bool FileDownloadRequestTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
REF(bytes);
|
||||
const Auth2Cli_FileDownloadChunk & reply = *(const Auth2Cli_FileDownloadChunk *) msg;
|
||||
|
||||
if (IS_NET_ERROR(reply.result)) {
|
||||
@ -3977,7 +3978,7 @@ bool VaultFetchNodeTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
REF(bytes);
|
||||
|
||||
const Auth2Cli_VaultNodeFetched & reply = *(const Auth2Cli_VaultNodeFetched *) msg;
|
||||
|
||||
@ -4055,7 +4056,7 @@ bool VaultFindNodeTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
REF(bytes);
|
||||
|
||||
const Auth2Cli_VaultNodeFindReply & reply = *(const Auth2Cli_VaultNodeFindReply *) msg;
|
||||
|
||||
@ -4125,7 +4126,7 @@ bool VaultCreateNodeTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
REF(bytes);
|
||||
|
||||
const Auth2Cli_VaultNodeCreated & reply = *(const Auth2Cli_VaultNodeCreated *) msg;
|
||||
|
||||
@ -4195,7 +4196,7 @@ bool VaultSaveNodeTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
REF(bytes);
|
||||
|
||||
const Auth2Cli_VaultSaveNodeReply & reply = *(const Auth2Cli_VaultSaveNodeReply *) msg;
|
||||
|
||||
@ -4260,7 +4261,7 @@ bool VaultAddNodeTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
REF(bytes);
|
||||
|
||||
const Auth2Cli_VaultAddNodeReply & reply = *(const Auth2Cli_VaultAddNodeReply *) msg;
|
||||
|
||||
@ -4322,7 +4323,7 @@ bool VaultRemoveNodeTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
REF(bytes);
|
||||
|
||||
const Auth2Cli_VaultRemoveNodeReply & reply = *(const Auth2Cli_VaultRemoveNodeReply *) msg;
|
||||
|
||||
@ -4395,7 +4396,7 @@ bool SetPlayerBanStatusRequestTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
REF(bytes);
|
||||
const Auth2Cli_SetPlayerBanStatusReply & reply = *(const Auth2Cli_SetPlayerBanStatusReply *) msg;
|
||||
|
||||
m_result = reply.result;
|
||||
@ -4453,7 +4454,7 @@ bool ChangePlayerNameRequestTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
REF(bytes);
|
||||
const Auth2Cli_ChangePlayerNameReply & reply = *(const Auth2Cli_ChangePlayerNameReply *) msg;
|
||||
|
||||
m_result = reply.result;
|
||||
@ -4515,7 +4516,7 @@ bool SendFriendInviteTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
REF(bytes);
|
||||
const Auth2Cli_SendFriendInviteReply & reply = *(const Auth2Cli_SendFriendInviteReply *) msg;
|
||||
|
||||
m_result = reply.result;
|
||||
@ -4606,7 +4607,7 @@ bool ScoreCreateTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
REF(bytes);
|
||||
const Auth2Cli_ScoreCreateReply & reply = *(const Auth2Cli_ScoreCreateReply *) msg;
|
||||
|
||||
m_scoreId = reply.scoreId;
|
||||
@ -4666,7 +4667,7 @@ bool ScoreDeleteTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
REF(bytes);
|
||||
const Auth2Cli_ScoreDeleteReply & reply = *(const Auth2Cli_ScoreDeleteReply *) msg;
|
||||
|
||||
m_result = reply.result;
|
||||
@ -4733,7 +4734,7 @@ bool ScoreGetScoresTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
REF(bytes);
|
||||
const Auth2Cli_ScoreGetScoresReply & reply = *(const Auth2Cli_ScoreGetScoresReply *) msg;
|
||||
|
||||
if (reply.scoreCount > 0) {
|
||||
@ -4809,7 +4810,7 @@ bool ScoreAddPointsTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
REF(bytes);
|
||||
const Auth2Cli_ScoreAddPointsReply & reply = *(const Auth2Cli_ScoreAddPointsReply *) msg;
|
||||
|
||||
m_result = reply.result;
|
||||
@ -4872,7 +4873,7 @@ bool ScoreTransferPointsTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
REF(bytes);
|
||||
const Auth2Cli_ScoreTransferPointsReply & reply = *(const Auth2Cli_ScoreTransferPointsReply *) msg;
|
||||
|
||||
m_result = reply.result;
|
||||
@ -4932,7 +4933,7 @@ bool ScoreSetPointsTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
REF(bytes);
|
||||
const Auth2Cli_ScoreSetPointsReply & reply = *(const Auth2Cli_ScoreSetPointsReply *) msg;
|
||||
|
||||
m_result = reply.result;
|
||||
@ -5013,7 +5014,7 @@ bool ScoreGetRanksTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
REF(bytes);
|
||||
const Auth2Cli_ScoreGetRanksReply & reply = *(const Auth2Cli_ScoreGetRanksReply *) msg;
|
||||
|
||||
if (reply.rankCount > 0) {
|
||||
@ -5709,7 +5710,7 @@ unsigned NetCliAuthVaultNodeSave (
|
||||
void NetCliAuthVaultNodeDelete (
|
||||
unsigned nodeId
|
||||
) {
|
||||
ref(nodeId);
|
||||
REF(nodeId);
|
||||
hsAssert(false, "eric, implement me");
|
||||
}
|
||||
|
||||
@ -5842,7 +5843,7 @@ void NetCliAuthSetRecvBufferHandler (
|
||||
void NetCliAuthSendCCRPetition (
|
||||
const wchar * petitionText
|
||||
) {
|
||||
ref(petitionText);
|
||||
REF(petitionText);
|
||||
hsAssert(false, "eric, implement me.");
|
||||
}
|
||||
|
||||
|
@ -187,7 +187,7 @@ static CliCsConn * GetConnIncRef_CS (const char tag[]) {
|
||||
|
||||
//============================================================================
|
||||
static CliCsConn * GetConnIncRef (const char tag[]) {
|
||||
ref(GetConnIncRef);
|
||||
REF(GetConnIncRef);
|
||||
|
||||
CliCsConn * conn;
|
||||
s_critsect.Enter();
|
||||
@ -420,7 +420,7 @@ static void AsyncLookupCallback (
|
||||
unsigned addrCount,
|
||||
const NetAddress addrs[]
|
||||
) {
|
||||
ref(name);
|
||||
REF(name);
|
||||
|
||||
if (!addrCount) {
|
||||
ReportNetError(kNetProtocolCli2Auth, kNetErrNameLookupFailed);
|
||||
@ -697,7 +697,7 @@ bool LoginRequestTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
REF(bytes);
|
||||
|
||||
const Csr2Cli_LoginReply & reply = *(const Csr2Cli_LoginReply *) msg;
|
||||
|
||||
|
@ -563,7 +563,7 @@ static void AsyncLookupCallback (
|
||||
unsigned addrCount,
|
||||
const NetAddress addrs[]
|
||||
) {
|
||||
ref(param);
|
||||
REF(param);
|
||||
|
||||
if (!addrCount) {
|
||||
ReportNetError(kNetProtocolCli2File, kNetErrNameLookupFailed);
|
||||
@ -793,7 +793,7 @@ void CliFileConn::Dispatch (const Cli2File_MsgHeader * msg) {
|
||||
bool CliFileConn::Recv_PingReply (
|
||||
const File2Cli_PingReply * msg
|
||||
) {
|
||||
ref(msg);
|
||||
REF(msg);
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -874,7 +874,7 @@ bool BuildIdRequestTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
REF(bytes);
|
||||
const File2Cli_BuildIdReply & reply = *(const File2Cli_BuildIdReply *) msg;
|
||||
|
||||
if (IS_NET_ERROR(reply.result)) {
|
||||
@ -960,7 +960,7 @@ bool ManifestRequestTrans::Recv (
|
||||
) {
|
||||
m_timeoutAtMs = TimeGetMs() + NetTransGetTimeoutMs(); // Reset the timeout counter
|
||||
|
||||
ref(bytes);
|
||||
REF(bytes);
|
||||
const File2Cli_ManifestReply & reply = *(const File2Cli_ManifestReply *) msg;
|
||||
|
||||
dword numFiles = reply.numFiles;
|
||||
@ -1173,7 +1173,7 @@ bool DownloadRequestTrans::Recv (
|
||||
) {
|
||||
m_timeoutAtMs = TimeGetMs() + NetTransGetTimeoutMs(); // Reset the timeout counter
|
||||
|
||||
ref(bytes);
|
||||
REF(bytes);
|
||||
const File2Cli_FileDownloadReply & reply = *(const File2Cli_FileDownloadReply *) msg;
|
||||
|
||||
dword byteCount = reply.byteCount;
|
||||
|
@ -430,9 +430,9 @@ static bool Recv_PingReply (
|
||||
unsigned bytes,
|
||||
void * param
|
||||
) {
|
||||
ref(msg);
|
||||
ref(bytes);
|
||||
ref(param);
|
||||
REF(msg);
|
||||
REF(bytes);
|
||||
REF(param);
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -442,8 +442,8 @@ static bool Recv_JoinAgeReply (
|
||||
unsigned bytes,
|
||||
void * param
|
||||
) {
|
||||
ref(bytes);
|
||||
ref(param);
|
||||
REF(bytes);
|
||||
REF(param);
|
||||
|
||||
const Game2Cli_JoinAgeReply & reply = *(const Game2Cli_JoinAgeReply *)msg;
|
||||
if (sizeof(reply) != bytes)
|
||||
@ -460,8 +460,8 @@ static bool Recv_PropagateBuffer (
|
||||
unsigned bytes,
|
||||
void * param
|
||||
) {
|
||||
ref(bytes);
|
||||
ref(param);
|
||||
REF(bytes);
|
||||
REF(param);
|
||||
|
||||
const Game2Cli_PropagateBuffer & reply = *(const Game2Cli_PropagateBuffer *)msg;
|
||||
|
||||
@ -481,8 +481,8 @@ static bool Recv_GameMgrMsg (
|
||||
unsigned bytes,
|
||||
void * param
|
||||
) {
|
||||
ref(bytes);
|
||||
ref(param);
|
||||
REF(bytes);
|
||||
REF(param);
|
||||
|
||||
const Game2Cli_GameMgrMsg & reply = *(const Game2Cli_GameMgrMsg *)msg;
|
||||
|
||||
@ -571,7 +571,7 @@ bool JoinAgeRequestTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
REF(bytes);
|
||||
|
||||
const Game2Cli_JoinAgeReply & reply = *(const Game2Cli_JoinAgeReply *) msg;
|
||||
m_result = reply.result;
|
||||
|
@ -488,7 +488,7 @@ static void AsyncLookupCallback (
|
||||
unsigned addrCount,
|
||||
const NetAddress addrs[]
|
||||
) {
|
||||
ref(param);
|
||||
REF(param);
|
||||
|
||||
if (!addrCount) {
|
||||
ReportNetError(kNetProtocolCli2GateKeeper, kNetErrNameLookupFailed);
|
||||
@ -818,7 +818,7 @@ bool PingRequestTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
REF(bytes);
|
||||
|
||||
const GateKeeper2Cli_PingReply & reply = *(const GateKeeper2Cli_PingReply *)msg;
|
||||
|
||||
@ -882,7 +882,7 @@ bool FileSrvIpAddressRequestTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
REF(bytes);
|
||||
|
||||
const GateKeeper2Cli_FileSrvIpAddressReply & reply = *(const GateKeeper2Cli_FileSrvIpAddressReply *)msg;
|
||||
|
||||
@ -942,7 +942,7 @@ bool AuthSrvIpAddressRequestTrans::Recv (
|
||||
const byte msg[],
|
||||
unsigned bytes
|
||||
) {
|
||||
ref(bytes);
|
||||
REF(bytes);
|
||||
|
||||
const GateKeeper2Cli_AuthSrvIpAddressReply & reply = *(const GateKeeper2Cli_AuthSrvIpAddressReply *)msg;
|
||||
|
||||
|
@ -640,7 +640,7 @@ void plObjectInVolumeDetector::IHandleEval(plEvalMsg* pEval)
|
||||
{
|
||||
plgDispatch::Dispatch()->UnRegisterForExactType(plEvalMsg::Index(), GetKey());
|
||||
fWaitingForEval = false;
|
||||
for(bookKeepingList::iterator it= (--fCollisionList.end());it!=(--fCollisionList.begin()); it--)
|
||||
for(bookKeepingList::reverse_iterator it= fCollisionList.rbegin();it!=fCollisionList.rend(); it++)
|
||||
{
|
||||
bool alreadyInside;
|
||||
ResidentSet::iterator HitIt;
|
||||
@ -1168,4 +1168,4 @@ hsBool plRidingAnimatedPhysicalDetector::MsgReceive(plMessage *msg)
|
||||
return true;
|
||||
}
|
||||
return plSimpleRegionSensor::MsgReceive(msg);
|
||||
}
|
||||
}
|
||||
|
@ -45,7 +45,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
|
||||
#include "plDetectorModifier.h"
|
||||
#include "hsGeometry3.h"
|
||||
#include <list.h>
|
||||
#include <list>
|
||||
#include <set>
|
||||
class plMessage;
|
||||
class plCameraMsg;
|
||||
|
@ -40,6 +40,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
|
||||
*==LICENSE==*/
|
||||
#include <algorithm>
|
||||
#include <iterator>
|
||||
#include "hsTimer.h"
|
||||
#include "plPhysicsSoundMgr.h"
|
||||
#include "plPhysicalSndGroup.h"
|
||||
@ -84,7 +85,7 @@ void plPhysicsSoundMgr::Update()
|
||||
fCurCollisions.clear();
|
||||
}
|
||||
|
||||
void plPhysicsSoundMgr::IStartCollision(CollidePair& cp)
|
||||
void plPhysicsSoundMgr::IStartCollision(const CollidePair& cp)
|
||||
{
|
||||
hsVector3 v1, v2;
|
||||
const hsScalar strengthThreshold = 20.0f;
|
||||
@ -120,7 +121,7 @@ void plPhysicsSoundMgr::IStartCollision(CollidePair& cp)
|
||||
}
|
||||
}
|
||||
|
||||
void plPhysicsSoundMgr::IStopCollision(CollidePair& cp)
|
||||
void plPhysicsSoundMgr::IStopCollision(const CollidePair& cp)
|
||||
{
|
||||
plPhysical* physicalA = cp.FirstPhysical();
|
||||
plPhysical* physicalB = cp.SecondPhysical();
|
||||
@ -146,7 +147,7 @@ void plPhysicsSoundMgr::IStopCollision(CollidePair& cp)
|
||||
}
|
||||
}
|
||||
|
||||
void plPhysicsSoundMgr::IUpdateCollision(CollidePair& cp)
|
||||
void plPhysicsSoundMgr::IUpdateCollision(const CollidePair& cp)
|
||||
{
|
||||
const hsScalar slideThreshhold = 0.f;
|
||||
hsVector3 v1, v2;
|
||||
|
@ -81,9 +81,9 @@ private:
|
||||
plPhysical* SecondPhysical() const;
|
||||
};
|
||||
|
||||
void IStartCollision(CollidePair& cp);
|
||||
void IStopCollision(CollidePair& cp);
|
||||
void IUpdateCollision(CollidePair& cp);
|
||||
void IStartCollision(const CollidePair& cp);
|
||||
void IStopCollision(const CollidePair& cp);
|
||||
void IUpdateCollision(const CollidePair& cp);
|
||||
void IProcessSlide(plPhysicalSndGroup* sndA, plPhysicalSndGroup* sndB, hsScalar strength);
|
||||
|
||||
typedef std::set<CollidePair> CollideSet;
|
||||
|
@ -10575,7 +10575,7 @@ inline void inlTESTPOINT(const hsPoint3& destP,
|
||||
|
||||
void plDXPipeline::IBlendVertsIntoBuffer( plSpan* span,
|
||||
hsMatrix44* matrixPalette, int numMatrices,
|
||||
UInt8 *src, UInt8 format, UInt32 srcStride,
|
||||
const UInt8 *src, UInt8 format, UInt32 srcStride,
|
||||
UInt8 *dest, UInt32 destStride, UInt32 count,
|
||||
UInt16 localUVWChans )
|
||||
{
|
||||
|
@ -464,7 +464,7 @@ protected:
|
||||
hsBool IAvatarSort(plDrawableSpans* d, const hsTArray<Int16>& visList);
|
||||
void IBlendVertsIntoBuffer( plSpan* span,
|
||||
hsMatrix44* matrixPalette, int numMatrices,
|
||||
UInt8 *src, UInt8 format, UInt32 srcStride,
|
||||
const UInt8 *src, UInt8 format, UInt32 srcStride,
|
||||
UInt8 *dest, UInt32 destStride, UInt32 count, UInt16 localUVWChans );
|
||||
hsBool ISoftwareVertexBlend( plDrawableSpans* drawable, const hsTArray<Int16>& visList );
|
||||
|
||||
|
@ -263,9 +263,9 @@ void plUnifiedTime::ToCurrentTime()
|
||||
SetToUTC();
|
||||
}
|
||||
|
||||
hsBool plUnifiedTime::SetGMTime(short year, short month, short day, short hour, short minute, short second, unsigned long usec, int dst)
|
||||
hsBool plUnifiedTime::SetGMTime(short year, short month, short day, short hour, short minute, short second, unsigned long usec)
|
||||
{
|
||||
if( !SetTime( year, month, day, hour, minute, second, usec, dst ) )
|
||||
if( !SetTime( year, month, day, hour, minute, second, usec, 0 ) )
|
||||
return false;
|
||||
|
||||
fSecs -= IGetLocalTimeZoneOffset();
|
||||
|
@ -129,7 +129,7 @@ public:
|
||||
void SetSecsDouble(double secs);
|
||||
void SetMicros(const UInt32 micros) { fMicros = micros; }
|
||||
hsBool SetTime(short year, short month, short day, short hour, short minute, short second, unsigned long usec=0, int dst=-1);
|
||||
hsBool SetGMTime(short year, short month, short day, short hour, short minute, short second, unsigned long usec=0, int dst=-1);
|
||||
hsBool SetGMTime(short year, short month, short day, short hour, short minute, short second, unsigned long usec=0);
|
||||
hsBool SetToUTC();
|
||||
void ToCurrentTime();
|
||||
void ToEpoch() { fSecs = 0; fMicros = 0;}
|
||||
|
Reference in New Issue
Block a user