mirror of https://github.com/AxioDL/metaforce.git
CCameraManager: Resolve signed/unsigned mismatch in RemoveCameraShaker
An unsigned value is passed into RemoveCameraShaker at its only usage spot. This also resolves unsigned/signed comparisons within the function itself.
This commit is contained in:
parent
9c5dec94c6
commit
b3fcbf9a89
|
@ -37,7 +37,7 @@ zeus::CTransform CCameraManager::GetCurrentCameraTransform(const CStateManager&
|
|||
return camera->GetTransform() * zeus::CTransform::Translate(x30_shakeOffset);
|
||||
}
|
||||
|
||||
void CCameraManager::RemoveCameraShaker(int id) {
|
||||
void CCameraManager::RemoveCameraShaker(u32 id) {
|
||||
for (auto it = x14_shakers.begin(); it != x14_shakers.end(); ++it)
|
||||
if (it->xbc_shakerId == id) {
|
||||
x14_shakers.erase(it);
|
||||
|
|
|
@ -94,7 +94,7 @@ public:
|
|||
bool IsInFirstPersonCamera() const;
|
||||
zeus::CVector3f GetGlobalCameraTranslation(const CStateManager& stateMgr) const;
|
||||
zeus::CTransform GetCurrentCameraTransform(const CStateManager& stateMgr) const;
|
||||
void RemoveCameraShaker(int id);
|
||||
void RemoveCameraShaker(u32 id);
|
||||
int AddCameraShaker(const CCameraShakeData& data, bool sfx);
|
||||
void AddCinemaCamera(TUniqueId, CStateManager& stateMgr);
|
||||
void RemoveCinemaCamera(TUniqueId, CStateManager&);
|
||||
|
|
Loading…
Reference in New Issue