Browse Source

strcmp -> _tcscmp

rdb 12 years ago
parent
commit
146f56e01e
1 changed files with 3 additions and 3 deletions
  1. 3 3
      pandatool/src/maxegg/maxEggLoader.cxx

+ 3 - 3
pandatool/src/maxegg/maxEggLoader.cxx

@@ -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) ));