mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-18 11:19:10 +00:00
Some cross-platform MinGW/gcc fixes.
This commit is contained in:
@ -131,7 +131,7 @@ bool plMorphSequence::MsgReceive(plMessage* msg)
|
|||||||
// Can always add it in later if desired.
|
// Can always add it in later if desired.
|
||||||
if( fTgtWgts.GetCount() )
|
if( fTgtWgts.GetCount() )
|
||||||
{
|
{
|
||||||
float delWgt = hsTimer::GetDelSysSeconds() / (kMorphTime > 0 ? kMorphTime : 1.e-3f);
|
float delWgt = hsTimer::GetDelSysSeconds() / (kMorphTime > 0 ? float(kMorphTime) : 1.e-3f);
|
||||||
int i;
|
int i;
|
||||||
for( i = 0; i < fTgtWgts.GetCount(); i++ )
|
for( i = 0; i < fTgtWgts.GetCount(); i++ )
|
||||||
{
|
{
|
||||||
|
@ -154,7 +154,7 @@ void plMorphSequenceSDLMod::ISetCurrentStateFrom(const plStateDataRecord* srcSta
|
|||||||
{
|
{
|
||||||
plKey meshKey;
|
plKey meshKey;
|
||||||
morphSD->GetStateDataRecord(i)->FindVar(kStrMesh)->Get(&meshKey);
|
morphSD->GetStateDataRecord(i)->FindVar(kStrMesh)->Get(&meshKey);
|
||||||
if (meshKey && !meshKey->GetUoid().GetClassType() == plSharedMesh::Index())
|
if (meshKey && meshKey->GetUoid().GetClassType() != plSharedMesh::Index())
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
// meshKey will be nil when dealing with non-sharedMesh data
|
// meshKey will be nil when dealing with non-sharedMesh data
|
||||||
|
@ -325,7 +325,10 @@ uint32_t plSecureStream::IRead(uint32_t bytes, void* buffer)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
// TODO: errno equivalent for *nix
|
||||||
|
#if HS_BUILD_FOR_WIN32
|
||||||
hsDebugMessage("Error on Windows read", GetLastError());
|
hsDebugMessage("Error on Windows read", GetLastError());
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return numItems;
|
return numItems;
|
||||||
|
Reference in New Issue
Block a user