mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 15:44:36 +00:00
Merge remote-tracking branch 'refs/remotes/origin/development' into pr/1153
This commit is contained in:
commit
10cb6ab9c4
893 changed files with 44063 additions and 6437 deletions
|
|
@ -254,10 +254,6 @@ ExplosionData::ExplosionData()
|
|||
lifetimeVariance = 0;
|
||||
offset = 0.0f;
|
||||
|
||||
shockwave = NULL;
|
||||
shockwaveID = 0;
|
||||
shockwaveOnTerrain = false;
|
||||
|
||||
shakeCamera = false;
|
||||
camShakeFreq.set( 10.0f, 10.0f, 10.0f );
|
||||
camShakeAmp.set( 1.0f, 1.0f, 1.0f );
|
||||
|
|
@ -321,9 +317,6 @@ void ExplosionData::initPersistFields()
|
|||
"explosion.\n\n"
|
||||
"@see particleEmitter" );
|
||||
|
||||
// addField( "shockwave", TypeShockwaveDataPtr, Offset(shockwave, ExplosionData) );
|
||||
// addField( "shockwaveOnTerrain", TypeBool, Offset(shockwaveOnTerrain, ExplosionData) );
|
||||
|
||||
addField( "debris", TYPEID< DebrisData >(), Offset(debrisList, ExplosionData), EC_NUM_DEBRIS_TYPES,
|
||||
"List of DebrisData objects to spawn with this explosion." );
|
||||
addField( "debrisThetaMin", TypeF32, Offset(debrisThetaMin, ExplosionData),
|
||||
|
|
|
|||
|
|
@ -41,7 +41,6 @@ class ParticleEmitterData;
|
|||
class TSThread;
|
||||
class SFXTrack;
|
||||
struct DebrisData;
|
||||
class ShockwaveData;
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
class ExplosionData : public GameBaseData {
|
||||
|
|
@ -77,10 +76,6 @@ class ExplosionData : public GameBaseData {
|
|||
ParticleEmitterData* emitterList[EC_NUM_EMITTERS];
|
||||
S32 emitterIDList[EC_NUM_EMITTERS];
|
||||
|
||||
ShockwaveData * shockwave;
|
||||
S32 shockwaveID;
|
||||
bool shockwaveOnTerrain;
|
||||
|
||||
DebrisData * debrisList[EC_NUM_DEBRIS_TYPES];
|
||||
S32 debrisIDList[EC_NUM_DEBRIS_TYPES];
|
||||
|
||||
|
|
|
|||
|
|
@ -248,7 +248,7 @@ fxFoliageCulledList::fxFoliageCulledList(Box3F SearchBox, fxFoliageCulledList* I
|
|||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
void fxFoliageCulledList::FindCandidates(Box3F SearchBox, fxFoliageCulledList* InVec)
|
||||
void fxFoliageCulledList::FindCandidates(const Box3F& SearchBox, fxFoliageCulledList* InVec)
|
||||
{
|
||||
// Search the Culled List.
|
||||
for (U32 i = 0; i < InVec->GetListCount(); i++)
|
||||
|
|
@ -1028,7 +1028,7 @@ void fxFoliageReplicator::SetupBuffers()
|
|||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
Box3F fxFoliageReplicator::FetchQuadrant(Box3F Box, U32 Quadrant)
|
||||
Box3F fxFoliageReplicator::FetchQuadrant(const Box3F& Box, U32 Quadrant)
|
||||
{
|
||||
Box3F QuadrantBox;
|
||||
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ public:
|
|||
fxFoliageCulledList(Box3F SearchBox, fxFoliageCulledList* InVec);
|
||||
~fxFoliageCulledList() {};
|
||||
|
||||
void FindCandidates(Box3F SearchBox, fxFoliageCulledList* InVec);
|
||||
void FindCandidates(const Box3F& SearchBox, fxFoliageCulledList* InVec);
|
||||
|
||||
U32 GetListCount(void) { return mCulledObjectSet.size(); };
|
||||
fxFoliageItem* GetElement(U32 index) { return mCulledObjectSet[index]; };
|
||||
|
|
@ -157,7 +157,7 @@ protected:
|
|||
|
||||
void SyncFoliageReplicators(void);
|
||||
|
||||
Box3F FetchQuadrant(Box3F Box, U32 Quadrant);
|
||||
Box3F FetchQuadrant(const Box3F& Box, U32 Quadrant);
|
||||
void ProcessQuadrant(fxFoliageQuadrantNode* pParentNode, fxFoliageCulledList* pCullList, U32 Quadrant);
|
||||
void ProcessNodeChildren(fxFoliageQuadrantNode* pParentNode, fxFoliageCulledList* pCullList);
|
||||
|
||||
|
|
|
|||
|
|
@ -148,7 +148,7 @@ protected:
|
|||
|
||||
public:
|
||||
|
||||
GroundCoverCell() {}
|
||||
GroundCoverCell() : mDirty(false) {}
|
||||
|
||||
~GroundCoverCell()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -156,6 +156,7 @@ LightningStrikeEvent::LightningStrikeEvent()
|
|||
{
|
||||
mLightning = NULL;
|
||||
mTarget = NULL;
|
||||
mClientId = 0;
|
||||
}
|
||||
|
||||
LightningStrikeEvent::~LightningStrikeEvent()
|
||||
|
|
|
|||
|
|
@ -1293,7 +1293,7 @@ void Precipitation::interpolateTick(F32 delta)
|
|||
void Precipitation::processTick(const Move *)
|
||||
{
|
||||
//nothing to do on the server
|
||||
if (isServerObject() || mDataBlock == NULL)
|
||||
if (isServerObject() || mDataBlock == NULL || isHidden())
|
||||
return;
|
||||
|
||||
const U32 currTime = Platform::getVirtualMilliseconds();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue