quick fix for misc sounds

player and vehicle were not loading some of thier sounds.
we'll want to revisit this with a more comprehensive solution in the future, but this will at least allow folks to use the systems in place
This commit is contained in:
AzaezelX 2026-04-04 15:21:47 -05:00
parent e7b4a0f1dc
commit 9ca436d193
5 changed files with 6 additions and 0 deletions

View file

@ -471,6 +471,7 @@ bool PlayerData::preload(bool server, String &errorStr)
if (!server) {
for (U32 i = 0; i < MaxSounds; ++i)
{
_setPlayerSound(getPlayerSound(i), i);
if (!isPlayerSoundValid(i))
{
//return false; -TODO: trigger asset download

View file

@ -348,6 +348,7 @@ bool RigidShapeData::preload(bool server, String &errorStr)
if (!server) {
for (S32 i = 0; i < Body::MaxSounds; i++)
{
_setBodySounds(getBodySounds(i), i);
if (!isBodySoundsValid(i))
{
//return false; -TODO: trigger asset download
@ -356,6 +357,7 @@ bool RigidShapeData::preload(bool server, String &errorStr)
for (S32 j = 0; j < Sounds::MaxSounds; j++)
{
_setWaterSounds(getWaterSounds(j), j);
if (!isWaterSoundsValid(j))
{
//return false; -TODO: trigger asset download

View file

@ -141,6 +141,7 @@ bool FlyingVehicleData::preload(bool server, String &errorStr)
if (!server) {
for (S32 i = 0; i < MaxSounds; i++)
{
_setFlyingSounds(getFlyingSounds(i), i);
if (!isFlyingSoundsValid(i))
{
//return false; -TODO: trigger asset download

View file

@ -313,6 +313,7 @@ bool HoverVehicleData::preload(bool server, String &errorStr)
for (S32 i = 0; i < MaxSounds; i++)
{
_setHoverSounds(getHoverSounds(i), i);
if (!isHoverSoundsValid(i))
{
//return false; -TODO: trigger asset download

View file

@ -348,6 +348,7 @@ bool WheeledVehicleData::preload(bool server, String &errorStr)
if (!server) {
for (S32 i = 0; i < MaxSounds; i++)
{
_setWheeledVehicleSounds(getWheeledVehicleSounds(i), i);
if (!isWheeledVehicleSoundsValid(i))
{
//return false; -TODO: trigger asset download