More Implements

-Most Vehicles and FX classes
-Vehicle classes may need more preloads for assets.
This commit is contained in:
marauder2k7 2021-09-20 13:07:50 +01:00
parent 1ea693fea6
commit 704eb27600
14 changed files with 191 additions and 147 deletions

View file

@ -70,7 +70,6 @@ class ExplosionData : public GameBaseData {
S32 particleDensity;
F32 particleRadius;
//SFXTrack* soundProfile;
DECLARE_SOUNDASSET(ExplosionData, Sound);
DECLARE_SOUNDASSET_SETGET(ExplosionData, Sound);

View file

@ -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);
}

View file

@ -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);

View file

@ -46,7 +46,6 @@ class PrecipitationData : public GameBaseData
typedef GameBaseData Parent;
public:
//SFXTrack* soundProfile;
DECLARE_SOUNDASSET(PrecipitationData, Sound);
DECLARE_SOUNDASSET_SETGET(PrecipitationData, Sound);