mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
Merge pull request #1294 from marauder2k9-torque/Various-Warnings-from-Mac
various warnings
This commit is contained in:
commit
b453b82095
12 changed files with 29 additions and 24 deletions
|
|
@ -232,7 +232,7 @@ class ParticleEmitter : public GameBase
|
||||||
void addParticle(const Point3F &pos, const Point3F &axis, const Point3F &vel, const Point3F &axisx, const U32 age_offset);
|
void addParticle(const Point3F &pos, const Point3F &axis, const Point3F &vel, const Point3F &axisx, const U32 age_offset);
|
||||||
|
|
||||||
|
|
||||||
inline void setupBillboard( Particle *part,
|
void setupBillboard( Particle *part,
|
||||||
Point3F *basePts,
|
Point3F *basePts,
|
||||||
const MatrixF &camView,
|
const MatrixF &camView,
|
||||||
const LinearColorF &ambientColor,
|
const LinearColorF &ambientColor,
|
||||||
|
|
|
||||||
|
|
@ -495,6 +495,9 @@ void ProximityMine::processTick( const Move* move )
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
// just break out, unknown state, covers warnings for not fulfilling all possiblities in enum.
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -407,8 +407,9 @@ U32 SFXEmitter::packUpdate(NetConnection* con, U32 mask, BitStream* stream)
|
||||||
stream->writeAffineTransform(mObjToWorld);
|
stream->writeAffineTransform(mObjToWorld);
|
||||||
|
|
||||||
// track
|
// track
|
||||||
if (stream->writeFlag(mask & DirtyUpdateMask))
|
if (stream->writeFlag(mask & DirtyUpdateMask)){
|
||||||
PACK_ASSET(con, Sound);
|
PACK_ASSET(con, Sound);
|
||||||
|
}
|
||||||
//if (stream->writeFlag(mDirty.test(Track)))
|
//if (stream->writeFlag(mDirty.test(Track)))
|
||||||
// sfxWrite( stream, mTrack );
|
// sfxWrite( stream, mTrack );
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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 (commandLineAction && commandLineAction[0] != '\0')
|
||||||
{
|
{
|
||||||
S32 result = system(commandLineAction);
|
S32 result = system(commandLineAction);
|
||||||
|
|
||||||
if (callBackFunction != "" && callBackFunction[0])
|
if (callBackFunction && callBackFunction[0] != '\0')
|
||||||
{
|
{
|
||||||
if (Con::isFunction(callBackFunction))
|
if (Con::isFunction(callBackFunction))
|
||||||
Con::executef(callBackFunction, result);
|
Con::executef(callBackFunction, result);
|
||||||
|
|
|
||||||
|
|
@ -553,7 +553,7 @@ static void exportScope(const EngineExportScope* scope, SimXMLDocument* xml, boo
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
AssertFatal(true, "Unknown EngineExportKind: " + exportInfo->getExportKind());
|
AssertFatal(false, avar("Unknown EngineExportKind: %d", exportInfo->getExportKind()));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@ namespace Con
|
||||||
{
|
{
|
||||||
char buffer[4096];
|
char buffer[4096];
|
||||||
va_list args;
|
va_list args;
|
||||||
va_start(args, &string);
|
va_start(args, string);
|
||||||
dVsprintf(buffer, sizeof(buffer), string, args);
|
dVsprintf(buffer, sizeof(buffer), string, args);
|
||||||
va_end(args);
|
va_end(args);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -97,7 +97,7 @@ namespace TorqueScript
|
||||||
{
|
{
|
||||||
char buffer[4096];
|
char buffer[4096];
|
||||||
va_list args;
|
va_list args;
|
||||||
va_start(args, &string);
|
va_start(args, string);
|
||||||
dVsprintf(buffer, sizeof(buffer), string, args);
|
dVsprintf(buffer, sizeof(buffer), string, args);
|
||||||
va_end(args);
|
va_end(args);
|
||||||
return evaluate(buffer);
|
return evaluate(buffer);
|
||||||
|
|
|
||||||
|
|
@ -140,19 +140,6 @@ static void create_uuid_state(uuid_state *st)
|
||||||
get_pseudo_node_identifier(&st->node);
|
get_pseudo_node_identifier(&st->node);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* dav_format_opaquelocktoken - generates a text representation
|
|
||||||
* of an opaquelocktoken
|
|
||||||
*/
|
|
||||||
static void format_token(char *target, const xuuid_t *u)
|
|
||||||
{
|
|
||||||
sprintf(target, "%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x",
|
|
||||||
u->time_low, u->time_mid, u->time_hi_and_version,
|
|
||||||
u->clock_seq_hi_and_reserved, u->clock_seq_low,
|
|
||||||
u->node[0], u->node[1], u->node[2],
|
|
||||||
u->node[3], u->node[4], u->node[5]);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* convert a pair of hex digits to an integer value [0,255] */
|
/* convert a pair of hex digits to an integer value [0,255] */
|
||||||
static int dav_parse_hexpair(const char *s)
|
static int dav_parse_hexpair(const char *s)
|
||||||
{
|
{
|
||||||
|
|
@ -414,9 +401,16 @@ namespace Torque
|
||||||
|
|
||||||
String UUID::toString() const
|
String UUID::toString() const
|
||||||
{
|
{
|
||||||
char buffer[ 1024 ];
|
const xuuid_t* u = (xuuid_t*)this;
|
||||||
format_token( buffer, ( xuuid_t* ) this );
|
StringBuilder str;
|
||||||
return buffer;
|
|
||||||
|
str.format("%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x",
|
||||||
|
u->time_low, u->time_mid, u->time_hi_and_version,
|
||||||
|
u->clock_seq_hi_and_reserved, u->clock_seq_low,
|
||||||
|
u->node[0], u->node[1], u->node[2],
|
||||||
|
u->node[3], u->node[4], u->node[5]);
|
||||||
|
|
||||||
|
return str.end();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool UUID::fromString( const char* str )
|
bool UUID::fromString( const char* str )
|
||||||
|
|
|
||||||
|
|
@ -144,4 +144,4 @@ public:
|
||||||
void canHitSelectedNodes(bool state = true);
|
void canHitSelectedNodes(bool state = true);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif _GUISHADEREDITOR_H_
|
#endif //_GUISHADEREDITOR_H_
|
||||||
|
|
|
||||||
|
|
@ -867,6 +867,9 @@ void WorldEditor::terrainSnapSelection(Selection* sel, U8 modifier, Point3F gizm
|
||||||
case AlignNegZ:
|
case AlignNegZ:
|
||||||
rot.set(mDegToRad(-90.0f), 0.0f, mDegToRad(180.0f));
|
rot.set(mDegToRad(-90.0f), 0.0f, mDegToRad(180.0f));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
MatrixF mat = MathUtils::createOrientFromDir(ri.normal);
|
MatrixF mat = MathUtils::createOrientFromDir(ri.normal);
|
||||||
|
|
|
||||||
|
|
@ -201,6 +201,9 @@ void duDebugDrawTorque::renderBuffer(Buffer &b)
|
||||||
buf[i].data.color.b,
|
buf[i].data.color.b,
|
||||||
buf[i].data.color.a);
|
buf[i].data.color.a);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
PrimBuild::end();
|
PrimBuild::end();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue