2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 23:47:42 +00:00

CPhysicsActor fixes, initial clang-format

This commit is contained in:
2016-09-02 08:26:29 -07:00
parent 67b6ccf2ff
commit 022c2feb6c
16 changed files with 283 additions and 380 deletions

View File

@@ -19,17 +19,17 @@ void CSfxManager::UpdateListener(const zeus::CVector3f& pos, const zeus::CVector
u16 CSfxManager::TranslateSFXID(u16 id)
{
if (mpSfxTranslationTable)
if (mpSfxTranslationTable == nullptr)
return 0;
u16 index = id & 0xFFFF;
u16 index = id;
if (index >= mpSfxTranslationTable->size())
return 0;
s16 ret = mpSfxTranslationTable->at(index);
if (ret == -1)
return 0;
return ret & 0xFFFF;
return ret;
}
}