fix warnings
This commit is contained in:
@@ -646,7 +646,7 @@ void Model::PlayAnimation( CString sAniName, float fPlayRate )
|
|||||||
for (j = 0; j < (int)pMesh->Vertices.size(); j++)
|
for (j = 0; j < (int)pMesh->Vertices.size(); j++)
|
||||||
{
|
{
|
||||||
RageModelVertex *pVertex = &pMesh->Vertices[j];
|
RageModelVertex *pVertex = &pMesh->Vertices[j];
|
||||||
int nBoneIndex = (pMesh->nBoneIndex!=-1) ? pMesh->nBoneIndex : pVertex->boneIndex;
|
// int nBoneIndex = (pMesh->nBoneIndex!=-1) ? pMesh->nBoneIndex : pVertex->boneIndex;
|
||||||
if (pVertex->boneIndex != -1)
|
if (pVertex->boneIndex != -1)
|
||||||
{
|
{
|
||||||
pVertex->p[0] -= m_vpBones[pVertex->boneIndex].mAbsolute.m[3][0];
|
pVertex->p[0] -= m_vpBones[pVertex->boneIndex].mAbsolute.m[3][0];
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ void RageModelGeometry::OptimizeBones()
|
|||||||
|
|
||||||
// check to see if all vertices have the same bone index
|
// check to see if all vertices have the same bone index
|
||||||
bool bAllVertsUseSameBone = true;
|
bool bAllVertsUseSameBone = true;
|
||||||
char nBoneIndex = !mesh.Vertices.empty() ? mesh.Vertices[0].boneIndex : -1;
|
char nBoneIndex = !mesh.Vertices.empty() ? mesh.Vertices[0].boneIndex : (char) -1;
|
||||||
if( nBoneIndex != -1 )
|
if( nBoneIndex != -1 )
|
||||||
{
|
{
|
||||||
for (unsigned j = 1; j < mesh.Vertices.size(); j++)
|
for (unsigned j = 1; j < mesh.Vertices.size(); j++)
|
||||||
|
|||||||
@@ -142,7 +142,8 @@ int EzSockets::receive(char *data, int MAXlength)
|
|||||||
//YES! I know this is a crappy way to do it, but
|
//YES! I know this is a crappy way to do it, but
|
||||||
//until someone tells me better... DON'T COMPLAIN
|
//until someone tells me better... DON'T COMPLAIN
|
||||||
|
|
||||||
while ((outData.length()<x) && (desc>0)) {
|
while( (int) outData.length()<x && desc>0 )
|
||||||
|
{
|
||||||
desc = ::recv( sock, buf, 1 , 0 );
|
desc = ::recv( sock, buf, 1 , 0 );
|
||||||
if (desc!=0)
|
if (desc!=0)
|
||||||
outData+=buf[0];
|
outData+=buf[0];
|
||||||
|
|||||||
Reference in New Issue
Block a user