mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 14:44:36 +00:00
Convert dStrcmp to String::compare for more cases
This commit is contained in:
parent
c999baf7ed
commit
197a62f6ea
22 changed files with 45 additions and 45 deletions
|
|
@ -1974,11 +1974,11 @@ void GuiConvexEditorCtrl::setSelectedFaceMaterial(const char* materialName)
|
|||
bool found = false;
|
||||
U32 oldmatID = mConvexSEL->mSurfaceUVs[mFaceSEL].matID;
|
||||
|
||||
if (dStrcmp(materialName, mConvexSEL->getMaterialName().c_str()))
|
||||
if (String::compare(materialName, mConvexSEL->getMaterialName().c_str()))
|
||||
{
|
||||
for (U32 i = 0; i < mConvexSEL->mSurfaceTextures.size(); i++)
|
||||
{
|
||||
if (!dStrcmp(mConvexSEL->mSurfaceTextures[i].materialName, materialName))
|
||||
if (!String::compare(mConvexSEL->mSurfaceTextures[i].materialName, materialName))
|
||||
{
|
||||
//found a match
|
||||
mConvexSEL->mSurfaceUVs[mFaceSEL].matID = i + 1;
|
||||
|
|
@ -2958,7 +2958,7 @@ DefineEngineMethod(GuiConvexEditorCtrl, setSelectedFaceMaterial, void, (const ch
|
|||
"@return true if successful, false if failed (objB is not valid)")
|
||||
{
|
||||
//return Point2F(0, 0);
|
||||
if (!dStrcmp(materialName, ""))
|
||||
if (!String::compare(materialName, ""))
|
||||
return;
|
||||
|
||||
object->setSelectedFaceMaterial(materialName);
|
||||
|
|
|
|||
|
|
@ -2415,7 +2415,7 @@ DefineEngineMethod( TerrainEditor, attachTerrain, void, (const char * terrain),
|
|||
VectorPtr<TerrainBlock*> terrains;
|
||||
|
||||
// attach to first found terrainBlock
|
||||
if (dStrcmp (terrain,"")==0)
|
||||
if (String::compare (terrain,"")==0)
|
||||
{
|
||||
for(SimSetIterator itr(scene); *itr; ++itr)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue