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:
Lioncash 2020-01-20 12:51:50 -05:00
parent 9c5dec94c6
commit b3fcbf9a89
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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&);