mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 23:24:41 +00:00
Fixed bad string compares and simdictionary
This commit is contained in:
parent
acb192e2a5
commit
9907c4592e
30 changed files with 169 additions and 202 deletions
|
|
@ -818,15 +818,17 @@ DefineConsoleMethod( GuiDecalEditorCtrl, getDecalCount, S32, (), , "getDecalCoun
|
|||
DefineConsoleMethod( GuiDecalEditorCtrl, getDecalTransform, const char*, ( U32 id ), , "getDecalTransform()" )
|
||||
{
|
||||
DecalInstance *decalInstance = gDecalManager->mDecalInstanceVec[id];
|
||||
|
||||
if( decalInstance == NULL )
|
||||
return "";
|
||||
|
||||
char* returnBuffer = Con::getReturnBuffer(256);
|
||||
returnBuffer[0] = 0;
|
||||
static const U32 bufSize = 256;
|
||||
char* returnBuffer = Con::getReturnBuffer(bufSize);
|
||||
|
||||
|
||||
if ( decalInstance )
|
||||
{
|
||||
dSprintf(returnBuffer, 256, "%f %f %f %f %f %f %f",
|
||||
dSprintf(returnBuffer, bufSize, "%f %f %f %f %f %f %f",
|
||||
decalInstance->mPosition.x, decalInstance->mPosition.y, decalInstance->mPosition.z,
|
||||
decalInstance->mTangent.x, decalInstance->mTangent.y, decalInstance->mTangent.z,
|
||||
decalInstance->mSize);
|
||||
|
|
|
|||
|
|
@ -97,7 +97,7 @@ void GuiMissionAreaEditorCtrl::setSelectedMissionArea( MissionArea *missionArea
|
|||
|
||||
DefineConsoleMethod( GuiMissionAreaEditorCtrl, setSelectedMissionArea, void, (const char * missionAreaName), (""), "" )
|
||||
{
|
||||
if ( missionAreaName == "" )
|
||||
if ( dStrcmp( missionAreaName, "" )==0 )
|
||||
object->setSelectedMissionArea(NULL);
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue