Fix CSfxManager::AddListener

This commit is contained in:
Phillip Stephens 2022-11-06 16:47:16 -08:00
parent 50a6575c49
commit 851320a6ff
2 changed files with 3 additions and 3 deletions

View File

@ -88,7 +88,7 @@ public:
static void AddListener(ESfxChannels channel, const CVector3f& pos, const CVector3f& dir,
const CVector3f& vec1, const CVector3f& vec2, float f1, float f2,
uint w1, uchar maxVolume, float f3);
float f3, uint w1, const uchar maxVolume);
static void Shutdown();
static ushort TranslateSFXID(ushort);

View File

@ -46,8 +46,8 @@ CCameraManager::CCameraManager(TUniqueId curCamera)
, x3b8_25_(false)
, x3bc_curFov(sThirdPersonFOV) {
CSfxManager::AddListener(CSfxManager::kSC_Game, CVector3f::Zero(), CVector3f::Zero(),
CVector3f(1.f, 0.f, 0.f), CVector3f(0.f, 0.f, 1.f), 50.f, 50.f, 1,
CAudioSys::kMaxVolume, 1000.f);
CVector3f(1.f, 0.f, 0.f), CVector3f(0.f, 0.f, 1.f), 50.f, 50.f, 1000.f,
1, CAudioSys::kMaxVolume);
sAspectRatio = (float)CGraphics::GetViewport().mWidth / CGraphics::GetViewport().mHeight;
sFirstPersonFOV = gpTweakGame->GetFirstPersonFOV();
}