1
0
Fork 0
mirror of https://git.rip/DMCA_FUCKER/re3.git synced 2024-12-23 05:30:00 +00:00

Update Pad.cpp

This commit is contained in:
Fire_Head 2019-06-13 03:58:29 +03:00 committed by GitHub
parent 601115e56a
commit 91b8de1d3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -334,7 +334,7 @@ void CPad::StartShake(Int16 nDur, UInt8 nFreq)
if ( !CMenuManager::m_PrefsUseVibration ) if ( !CMenuManager::m_PrefsUseVibration )
return; return;
if ( CCutsceneMgr::ms_running || CGame::playingIntro ) if ( CCutsceneMgr::IsRunning() || CGame::playingIntro )
return; return;
if ( nFreq == 0 ) if ( nFreq == 0 )
@ -356,7 +356,7 @@ void CPad::StartShake_Distance(Int16 nDur, UInt8 nFreq, Float fX, Float fY, Floa
if ( !CMenuManager::m_PrefsUseVibration ) if ( !CMenuManager::m_PrefsUseVibration )
return; return;
if ( CCutsceneMgr::ms_running || CGame::playingIntro ) if ( CCutsceneMgr::IsRunning() || CGame::playingIntro )
return; return;
Float fDist = ( TheCamera.GetPosition() - CVector(fX, fY, fZ) ).Magnitude(); Float fDist = ( TheCamera.GetPosition() - CVector(fX, fY, fZ) ).Magnitude();
@ -383,7 +383,7 @@ void CPad::StartShake_Train(Float fX, Float fY)
if ( !CMenuManager::m_PrefsUseVibration ) if ( !CMenuManager::m_PrefsUseVibration )
return; return;
if ( CCutsceneMgr::ms_running || CGame::playingIntro ) if ( CCutsceneMgr::IsRunning() || CGame::playingIntro )
return; return;
if (FindPlayerVehicle() != NULL && FindPlayerVehicle()->IsTrain() ) if (FindPlayerVehicle() != NULL && FindPlayerVehicle()->IsTrain() )