mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-29 16:25:42 +00:00
Merge pull request #1804 from Azaezel/greatestZero
clang: unsigned>0 checks
This commit is contained in:
commit
269b195355
4 changed files with 5 additions and 5 deletions
|
|
@ -62,8 +62,8 @@ struct DebrisData : public GameBaseData
|
||||||
F32 elasticity;
|
F32 elasticity;
|
||||||
F32 lifetime;
|
F32 lifetime;
|
||||||
F32 lifetimeVariance;
|
F32 lifetimeVariance;
|
||||||
U32 numBounces;
|
S32 numBounces;
|
||||||
U32 bounceVariance;
|
S32 bounceVariance;
|
||||||
F32 minSpinSpeed;
|
F32 minSpinSpeed;
|
||||||
F32 maxSpinSpeed;
|
F32 maxSpinSpeed;
|
||||||
bool explodeOnMaxBounce; // explodes after it has bounced max times
|
bool explodeOnMaxBounce; // explodes after it has bounced max times
|
||||||
|
|
|
||||||
|
|
@ -87,7 +87,7 @@ class ParticleEmitterData : public GameBaseData
|
||||||
/// of the ambient color on the particle.
|
/// of the ambient color on the particle.
|
||||||
F32 ambientFactor;
|
F32 ambientFactor;
|
||||||
|
|
||||||
U32 lifetimeMS; ///< Lifetime of particles
|
S32 lifetimeMS; ///< Lifetime of particles
|
||||||
U32 lifetimeVarianceMS; ///< Varience in lifetime from 0 to n
|
U32 lifetimeVarianceMS; ///< Varience in lifetime from 0 to n
|
||||||
|
|
||||||
bool overrideAdvance; ///<
|
bool overrideAdvance; ///<
|
||||||
|
|
|
||||||
|
|
@ -354,7 +354,7 @@ void Ribbon::addSegmentPoint(Point3F &point, MatrixF &mat) {
|
||||||
U32 segmentsToDelete = checkRibbonDistance(mDataBlock->segmentsPerUpdate);
|
U32 segmentsToDelete = checkRibbonDistance(mDataBlock->segmentsPerUpdate);
|
||||||
|
|
||||||
for (U32 i = 0; i < segmentsToDelete; i++) {
|
for (U32 i = 0; i < segmentsToDelete; i++) {
|
||||||
U32 last = mSegmentPoints.size() - 1;
|
S32 last = mSegmentPoints.size() - 1;
|
||||||
if (last < 0)
|
if (last < 0)
|
||||||
break;
|
break;
|
||||||
mTravelledDistance += last ? (mSegmentPoints[last] - mSegmentPoints[last-1]).len() : 0;
|
mTravelledDistance += last ? (mSegmentPoints[last] - mSegmentPoints[last-1]).len() : 0;
|
||||||
|
|
|
||||||
|
|
@ -484,7 +484,7 @@ protected:
|
||||||
/// @{
|
/// @{
|
||||||
|
|
||||||
struct ActionAnimation {
|
struct ActionAnimation {
|
||||||
U32 action;
|
S32 action;
|
||||||
TSThread* thread;
|
TSThread* thread;
|
||||||
S32 delayTicks; // before picking another.
|
S32 delayTicks; // before picking another.
|
||||||
bool forward;
|
bool forward;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue