mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +00:00
Moves from using dStrIsEmpty to the new String::isEmpty static function. Keeps things cleaner, consistent, and works with intellisense.
This commit is contained in:
parent
8a55feebef
commit
6e8fa7215a
11 changed files with 29 additions and 29 deletions
|
|
@ -150,9 +150,9 @@ DefineConsoleFunction( getTerrainUnderWorldPoint, S32, (const char* ptOrX, const
|
|||
"@hide")
|
||||
{
|
||||
Point3F pos;
|
||||
if(!dStrIsEmpty(ptOrX) && dStrIsEmpty(y) && dStrIsEmpty(z))
|
||||
if(!String::isEmpty(ptOrX) && String::isEmpty(y) && String::isEmpty(z))
|
||||
dSscanf(ptOrX, "%f %f %f", &pos.x, &pos.y, &pos.z);
|
||||
else if(!dStrIsEmpty(ptOrX) && !dStrIsEmpty(y) && !dStrIsEmpty(z))
|
||||
else if(!String::isEmpty(ptOrX) && !String::isEmpty(y) && !String::isEmpty(z))
|
||||
{
|
||||
pos.x = dAtof(ptOrX);
|
||||
pos.y = dAtof(y);
|
||||
|
|
@ -1327,9 +1327,9 @@ DefineConsoleFunction( getTerrainHeight, F32, (const char* ptOrX, const char* y)
|
|||
F32 height = 0.0f;
|
||||
|
||||
Point2F pos;
|
||||
if(!dStrIsEmpty(ptOrX) && dStrIsEmpty(y))
|
||||
if(!String::isEmpty(ptOrX) && String::isEmpty(y))
|
||||
dSscanf(ptOrX, "%f %f", &pos.x, &pos.y);
|
||||
else if(!dStrIsEmpty(ptOrX) && !dStrIsEmpty(y))
|
||||
else if(!String::isEmpty(ptOrX) && !String::isEmpty(y))
|
||||
{
|
||||
pos.x = dAtof(ptOrX);
|
||||
pos.y = dAtof(y);
|
||||
|
|
@ -1374,9 +1374,9 @@ DefineConsoleFunction( getTerrainHeightBelowPosition, F32, (const char* ptOrX, c
|
|||
F32 height = 0.0f;
|
||||
|
||||
Point3F pos;
|
||||
if(!dStrIsEmpty(ptOrX) && dStrIsEmpty(y) && dStrIsEmpty(z))
|
||||
if(!String::isEmpty(ptOrX) && String::isEmpty(y) && String::isEmpty(z))
|
||||
dSscanf(ptOrX, "%f %f %f", &pos.x, &pos.y, &pos.z);
|
||||
else if(!dStrIsEmpty(ptOrX) && !dStrIsEmpty(y) && !dStrIsEmpty(z))
|
||||
else if(!String::isEmpty(ptOrX) && !String::isEmpty(y) && !String::isEmpty(z))
|
||||
{
|
||||
pos.x = dAtof(ptOrX);
|
||||
pos.y = dAtof(y);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue