mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-21 20:35:35 +00:00
Added dStrIsEmpty and replaced some incorrect string comparisons.
This commit is contained in:
parent
9396ae7176
commit
03f71a78c0
2 changed files with 7 additions and 2 deletions
|
|
@ -2761,9 +2761,9 @@ DefineConsoleMethod(TerrainEditor, getTerrainUnderWorldPoint, S32, (const char *
|
|||
if(tEditor == NULL)
|
||||
return 0;
|
||||
Point3F pos;
|
||||
if(ptOrX != "" && Y == "" && Z == "")
|
||||
if(!dStrIsEmpty(ptOrX) && dStrIsEmpty(Y) && dStrIsEmpty(Z))
|
||||
dSscanf(ptOrX, "%f %f %f", &pos.x, &pos.y, &pos.z);
|
||||
else if(ptOrX != "" && Y != "" && Z != "")
|
||||
else if(!dStrIsEmpty(ptOrX) && !dStrIsEmpty(Y) && !dStrIsEmpty(Z))
|
||||
{
|
||||
pos.x = dAtof(ptOrX);
|
||||
pos.y = dAtof(Y);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue