mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +00:00
Moves from using dStrCmp to the new String::compare static functions. Keeps things cleaner, consistent, and works with intellisense.
This commit is contained in:
parent
76c5e30869
commit
c999baf7ed
68 changed files with 168 additions and 144 deletions
|
|
@ -707,33 +707,33 @@ DefineEngineMethod( Material, getAnimFlags, const char*, (U32 id), , "" )
|
|||
|
||||
if(object->mAnimFlags[ id ] & Material::Scroll)
|
||||
{
|
||||
if(dStrcmp( animFlags, "" ) == 0)
|
||||
if(String::compare( animFlags, "" ) == 0)
|
||||
dStrcpy( animFlags, "$Scroll", 512 );
|
||||
}
|
||||
if(object->mAnimFlags[ id ] & Material::Rotate)
|
||||
{
|
||||
if(dStrcmp( animFlags, "" ) == 0)
|
||||
if(String::compare( animFlags, "" ) == 0)
|
||||
dStrcpy( animFlags, "$Rotate", 512 );
|
||||
else
|
||||
dStrcat( animFlags, " | $Rotate", 512);
|
||||
}
|
||||
if(object->mAnimFlags[ id ] & Material::Wave)
|
||||
{
|
||||
if(dStrcmp( animFlags, "" ) == 0)
|
||||
if(String::compare( animFlags, "" ) == 0)
|
||||
dStrcpy( animFlags, "$Wave", 512 );
|
||||
else
|
||||
dStrcat( animFlags, " | $Wave", 512);
|
||||
}
|
||||
if(object->mAnimFlags[ id ] & Material::Scale)
|
||||
{
|
||||
if(dStrcmp( animFlags, "" ) == 0)
|
||||
if(String::compare( animFlags, "" ) == 0)
|
||||
dStrcpy( animFlags, "$Scale", 512 );
|
||||
else
|
||||
dStrcat( animFlags, " | $Scale", 512);
|
||||
}
|
||||
if(object->mAnimFlags[ id ] & Material::Sequence)
|
||||
{
|
||||
if(dStrcmp( animFlags, "" ) == 0)
|
||||
if(String::compare( animFlags, "" ) == 0)
|
||||
dStrcpy( animFlags, "$Sequence", 512 );
|
||||
else
|
||||
dStrcat( animFlags, " | $Sequence", 512);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue