mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
ID10T error
no default does not need case -_- id10t error, few other fixes
This commit is contained in:
parent
a621cc5100
commit
6807abc8b6
5 changed files with 8 additions and 6 deletions
|
|
@ -495,7 +495,7 @@ void ProximityMine::processTick( const Move* move )
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case default:
|
default:
|
||||||
// just break out, unknown state, covers warnings for not fulfilling all possiblities in enum.
|
// just break out, unknown state, covers warnings for not fulfilling all possiblities in enum.
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2806,11 +2806,11 @@ DefineEngineFunction(getTimestamp, const char*, (), ,
|
||||||
#ifdef TORQUE_TOOLS
|
#ifdef TORQUE_TOOLS
|
||||||
DefineEngineFunction(systemCommand, S32, (const char* commandLineAction, const char* callBackFunction), (""), "")
|
DefineEngineFunction(systemCommand, S32, (const char* commandLineAction, const char* callBackFunction), (""), "")
|
||||||
{
|
{
|
||||||
if (commandLineAction != "")
|
if (callBackFunction[0] != '\0')
|
||||||
{
|
{
|
||||||
S32 result = system(commandLineAction);
|
S32 result = system(commandLineAction);
|
||||||
|
|
||||||
if (callBackFunction != "" && callBackFunction[0])
|
if (callBackFunction[0])
|
||||||
{
|
{
|
||||||
if (Con::isFunction(callBackFunction))
|
if (Con::isFunction(callBackFunction))
|
||||||
Con::executef(callBackFunction, result);
|
Con::executef(callBackFunction, result);
|
||||||
|
|
|
||||||
|
|
@ -942,6 +942,7 @@ U32 AssignExprNode::compile(CodeStream& codeStream, U32 ip, TypeReq type)
|
||||||
case TypeReqString: codeStream.emit(OP_SAVEVAR_STR); break;
|
case TypeReqString: codeStream.emit(OP_SAVEVAR_STR); break;
|
||||||
case TypeReqUInt: codeStream.emit(OP_SAVEVAR_UINT); break;
|
case TypeReqUInt: codeStream.emit(OP_SAVEVAR_UINT); break;
|
||||||
case TypeReqFloat: codeStream.emit(OP_SAVEVAR_FLT); break;
|
case TypeReqFloat: codeStream.emit(OP_SAVEVAR_FLT); break;
|
||||||
|
default: break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
|
|
@ -868,7 +868,7 @@ void WorldEditor::terrainSnapSelection(Selection* sel, U8 modifier, Point3F gizm
|
||||||
rot.set(mDegToRad(-90.0f), 0.0f, mDegToRad(180.0f));
|
rot.set(mDegToRad(-90.0f), 0.0f, mDegToRad(180.0f));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -202,8 +202,9 @@ void duDebugDrawTorque::renderBuffer(Buffer &b)
|
||||||
buf[i].data.color.a);
|
buf[i].data.color.a);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case default:
|
default:
|
||||||
break;
|
PrimBuild::end();
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
PrimBuild::end();
|
PrimBuild::end();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue