mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +00:00
Fixed String comparisons.
This commit is contained in:
parent
d6570e3533
commit
2f48f31a6f
5 changed files with 7 additions and 7 deletions
|
|
@ -1566,11 +1566,11 @@ DefineConsoleFunction( sfxPlay, S32, ( const char * trackName, const char * poin
|
|||
}
|
||||
|
||||
Point3F pos(0.f, 0.f, 0.f);
|
||||
if ( pointOrX != "" && y == ""&& z == "" )
|
||||
if (dStrcmp( pointOrX, "" ) != 0 && dStrcmp( y, "" ) == 0 && dStrcmp( z, "" ) == 0 )
|
||||
{
|
||||
dSscanf( pointOrX, "%g %g %g", &pos.x, &pos.y, &pos.z );
|
||||
}
|
||||
else if( pointOrX != "" && y != "" && z != "" )
|
||||
else if(dStrcmp( pointOrX, "" ) != 0 && dStrcmp( y, "" ) != 0 && dStrcmp( z, "" ) != 0 )
|
||||
pos.set( dAtof(pointOrX), dAtof(y), dAtof(z) );
|
||||
|
||||
MatrixF transform;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue