strcmp -> _tcscmp

This commit is contained in:
rdb 2013-10-07 21:39:41 +00:00
parent f5dc6ac8d7
commit 146f56e01e

View File

@ -276,9 +276,9 @@ void MaxEggJoint::CreateMaxBone(void)
IParamBlock2 *blk = _bone->pblock2;
for (int i=0; i<blk->NumParams(); i++) {
MSTR n = blk->GetLocalName(i);
if (strcmp(n, "Length")==0) blk->SetValue(i,0,(PN_stdfloat)len);
else if (strcmp(n, "Width")==0) blk->SetValue(i,0,(PN_stdfloat)_thickness);
else if (strcmp(n, "Height")==0) blk->SetValue(i,0,(PN_stdfloat)_thickness);
if (_tcscmp(n, _M("Length"))==0) blk->SetValue(i,0,(PN_stdfloat)len);
else if (_tcscmp(n, _M("Width"))==0) blk->SetValue(i,0,(PN_stdfloat)_thickness);
else if (_tcscmp(n, _M("Height"))==0) blk->SetValue(i,0,(PN_stdfloat)_thickness);
}
Point3 boneColor = GetUIColor(COLOR_BONES);
_node->SetWireColor(RGB(int(boneColor.x*255.0f), int(boneColor.y*255.0f), int(boneColor.z*255.0f) ));