mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-14 02:27:40 -04:00
Update3 for MSVC10
Fix some const problems.
This commit is contained in:
@ -1970,11 +1970,11 @@ bool IsExpired()
|
|||||||
void* desc = nil;
|
void* desc = nil;
|
||||||
if (VerQueryValue(data, "\\StringFileInfo\\040904B0\\FileDescription", &desc, &descLen))
|
if (VerQueryValue(data, "\\StringFileInfo\\040904B0\\FileDescription", &desc, &descLen))
|
||||||
{
|
{
|
||||||
char* buildDateStart = strstr((const char*)desc, " - Built ");
|
const char* buildDateStart = strstr((const char*)desc, " - Built ");
|
||||||
if (buildDateStart)
|
if (buildDateStart)
|
||||||
{
|
{
|
||||||
buildDateStart += strlen(" - Built ");
|
buildDateStart += strlen(" - Built ");
|
||||||
char* buildDateEnd = strstr(buildDateStart, " at");
|
const char* buildDateEnd = strstr(buildDateStart, " at");
|
||||||
if (buildDateEnd)
|
if (buildDateEnd)
|
||||||
{
|
{
|
||||||
int len = buildDateEnd-buildDateStart;
|
int len = buildDateEnd-buildDateStart;
|
||||||
|
@ -218,12 +218,12 @@ void plAgeDescription::SetAgeNameFromPath( const char *path )
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Construct our name from the path
|
// Construct our name from the path
|
||||||
char *pathSep1 = strrchr( path, '\\' );
|
const char *pathSep1 = strrchr( path, '\\' );
|
||||||
char *pathSep2 = strrchr( path, '/' );
|
const char *pathSep2 = strrchr( path, '/' );
|
||||||
if( pathSep2 > pathSep1 )
|
if( pathSep2 > pathSep1 )
|
||||||
pathSep1 = pathSep2;
|
pathSep1 = pathSep2;
|
||||||
if( pathSep1 == nil )
|
if( pathSep1 == nil )
|
||||||
pathSep1 = (char *)path;
|
pathSep1 = path;
|
||||||
else
|
else
|
||||||
pathSep1++; // Get past the actual character we found
|
pathSep1++; // Get past the actual character we found
|
||||||
|
|
||||||
|
@ -99,7 +99,10 @@ public:
|
|||||||
{
|
{
|
||||||
std::set<OwnedGroup>::iterator it=IFind(grpId);
|
std::set<OwnedGroup>::iterator it=IFind(grpId);
|
||||||
if (it != fGroups.end())
|
if (it != fGroups.end())
|
||||||
(*it).fOwnIt=ownIt;
|
{
|
||||||
|
fGroups.erase(it);
|
||||||
|
fGroups.insert(OwnedGroup(grpId, ownIt));
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ISetGroupDesc(grpId);
|
ISetGroupDesc(grpId);
|
||||||
|
@ -275,7 +275,7 @@ void plNetObjectDebugger::LogMsgIfMatch(const char* msg) const
|
|||||||
std::string tmp = msg;
|
std::string tmp = msg;
|
||||||
hsStrLower((char*)tmp.c_str());
|
hsStrLower((char*)tmp.c_str());
|
||||||
std::string objTag="object";
|
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())
|
if (c && c != tmp.c_str())
|
||||||
{
|
{
|
||||||
c+=objTag.size();
|
c+=objTag.size();
|
||||||
|
@ -82,7 +82,7 @@ void plNetClientRecorder::IMakeFilename(const char* recName, char* path)
|
|||||||
CreateDirectory(path, NULL);
|
CreateDirectory(path, NULL);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
char* lastDot = strrchr(recName, '.');
|
const char* lastDot = strrchr(recName, '.');
|
||||||
if (lastDot)
|
if (lastDot)
|
||||||
strncat(path, recName, lastDot-recName);
|
strncat(path, recName, lastDot-recName);
|
||||||
else
|
else
|
||||||
|
@ -84,7 +84,7 @@ void plPhysicsSoundMgr::Update()
|
|||||||
fCurCollisions.clear();
|
fCurCollisions.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
void plPhysicsSoundMgr::IStartCollision(CollidePair& cp)
|
void plPhysicsSoundMgr::IStartCollision(const CollidePair& cp)
|
||||||
{
|
{
|
||||||
hsVector3 v1, v2;
|
hsVector3 v1, v2;
|
||||||
const hsScalar strengthThreshold = 20.0f;
|
const hsScalar strengthThreshold = 20.0f;
|
||||||
@ -120,7 +120,7 @@ void plPhysicsSoundMgr::IStartCollision(CollidePair& cp)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void plPhysicsSoundMgr::IStopCollision(CollidePair& cp)
|
void plPhysicsSoundMgr::IStopCollision(const CollidePair& cp)
|
||||||
{
|
{
|
||||||
plPhysical* physicalA = cp.FirstPhysical();
|
plPhysical* physicalA = cp.FirstPhysical();
|
||||||
plPhysical* physicalB = cp.SecondPhysical();
|
plPhysical* physicalB = cp.SecondPhysical();
|
||||||
@ -146,7 +146,7 @@ void plPhysicsSoundMgr::IStopCollision(CollidePair& cp)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void plPhysicsSoundMgr::IUpdateCollision(CollidePair& cp)
|
void plPhysicsSoundMgr::IUpdateCollision(const CollidePair& cp)
|
||||||
{
|
{
|
||||||
const hsScalar slideThreshhold = 0.f;
|
const hsScalar slideThreshhold = 0.f;
|
||||||
hsVector3 v1, v2;
|
hsVector3 v1, v2;
|
||||||
|
@ -81,9 +81,9 @@ private:
|
|||||||
plPhysical* SecondPhysical() const;
|
plPhysical* SecondPhysical() const;
|
||||||
};
|
};
|
||||||
|
|
||||||
void IStartCollision(CollidePair& cp);
|
void IStartCollision(const CollidePair& cp);
|
||||||
void IStopCollision(CollidePair& cp);
|
void IStopCollision(const CollidePair& cp);
|
||||||
void IUpdateCollision(CollidePair& cp);
|
void IUpdateCollision(const CollidePair& cp);
|
||||||
void IProcessSlide(plPhysicalSndGroup* sndA, plPhysicalSndGroup* sndB, hsScalar strength);
|
void IProcessSlide(plPhysicalSndGroup* sndA, plPhysicalSndGroup* sndB, hsScalar strength);
|
||||||
|
|
||||||
typedef std::set<CollidePair> CollideSet;
|
typedef std::set<CollidePair> CollideSet;
|
||||||
|
@ -10575,7 +10575,7 @@ inline void inlTESTPOINT(const hsPoint3& destP,
|
|||||||
|
|
||||||
void plDXPipeline::IBlendVertsIntoBuffer( plSpan* span,
|
void plDXPipeline::IBlendVertsIntoBuffer( plSpan* span,
|
||||||
hsMatrix44* matrixPalette, int numMatrices,
|
hsMatrix44* matrixPalette, int numMatrices,
|
||||||
UInt8 *src, UInt8 format, UInt32 srcStride,
|
const UInt8 *src, UInt8 format, UInt32 srcStride,
|
||||||
UInt8 *dest, UInt32 destStride, UInt32 count,
|
UInt8 *dest, UInt32 destStride, UInt32 count,
|
||||||
UInt16 localUVWChans )
|
UInt16 localUVWChans )
|
||||||
{
|
{
|
||||||
|
@ -464,7 +464,7 @@ protected:
|
|||||||
hsBool IAvatarSort(plDrawableSpans* d, const hsTArray<Int16>& visList);
|
hsBool IAvatarSort(plDrawableSpans* d, const hsTArray<Int16>& visList);
|
||||||
void IBlendVertsIntoBuffer( plSpan* span,
|
void IBlendVertsIntoBuffer( plSpan* span,
|
||||||
hsMatrix44* matrixPalette, int numMatrices,
|
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 );
|
UInt8 *dest, UInt32 destStride, UInt32 count, UInt16 localUVWChans );
|
||||||
hsBool ISoftwareVertexBlend( plDrawableSpans* drawable, const hsTArray<Int16>& visList );
|
hsBool ISoftwareVertexBlend( plDrawableSpans* drawable, const hsTArray<Int16>& visList );
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user