Fix CSfxManager::AddListener

Former-commit-id: 851320a6ff
This commit is contained in:
Phillip Stephens 2022-11-06 16:47:16 -08:00
parent 404b4276fe
commit 7a2307d105
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();
}