mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 15:14:35 +00:00
More Implements
-Most Vehicles and FX classes -Vehicle classes may need more preloads for assets.
This commit is contained in:
parent
1ea693fea6
commit
704eb27600
14 changed files with 191 additions and 147 deletions
|
|
@ -70,7 +70,6 @@ class ExplosionData : public GameBaseData {
|
|||
S32 particleDensity;
|
||||
F32 particleRadius;
|
||||
|
||||
//SFXTrack* soundProfile;
|
||||
DECLARE_SOUNDASSET(ExplosionData, Sound);
|
||||
DECLARE_SOUNDASSET_SETGET(ExplosionData, Sound);
|
||||
|
||||
|
|
|
|||
|
|
@ -290,7 +290,7 @@ bool LightningData::preload(bool server, String &errorStr)
|
|||
//dQsort(thunderSounds, MaxThunders, sizeof(SFXTrack*), cmpSounds);
|
||||
|
||||
for (S32 i = 0; i < MaxThunders; i++) {
|
||||
if (mThunderSound[i] == NULL)
|
||||
if (mThunderSound[i])
|
||||
{
|
||||
_setThunderSound(getThunderSound(i), i);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -63,7 +63,6 @@ class LightningData : public GameBaseData
|
|||
|
||||
//-------------------------------------- Console set variables
|
||||
public:
|
||||
//SFXTrack* thunderSounds[MaxThunders];
|
||||
|
||||
DECLARE_SOUNDASSET_ARRAY(LightningData, ThunderSound, MaxThunders);
|
||||
DECLARE_SOUNDASSET_ARRAY_SETGET(LightningData, ThunderSound);
|
||||
|
|
|
|||
|
|
@ -46,7 +46,6 @@ class PrecipitationData : public GameBaseData
|
|||
typedef GameBaseData Parent;
|
||||
|
||||
public:
|
||||
//SFXTrack* soundProfile;
|
||||
DECLARE_SOUNDASSET(PrecipitationData, Sound);
|
||||
DECLARE_SOUNDASSET_SETGET(PrecipitationData, Sound);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue