Fix controls

This commit is contained in:
Sergeanur 2021-02-22 17:47:58 +02:00
parent a3f1601fd1
commit 82ebd8aae1

View file

@ -333,7 +333,11 @@ CAutomobile::ProcessControl(void)
bool playerRemote = false;
switch(GetStatus()){
case STATUS_PLAYER_REMOTE:
#ifdef FIX_BUGS
if (CPad::GetPad(0)->CarGunJustDown()) {
#else
if (CPad::GetPad(0)->WeaponJustDown()) {
#endif
BlowUpCar(FindPlayerPed());
CRemote::TakeRemoteControlledCarFromPlayer();
}
@ -2372,7 +2376,11 @@ void
CAutomobile::FireTruckControl(void)
{
if(this == FindPlayerVehicle()){
#ifdef FIX_BUGS
if (!CPad::GetPad(0)->GetCarGunFired())
#else
if (!CPad::GetPad(0)->GetWeapon())
#endif // FIX_BUGS
return;
#ifdef FREE_CAM
if (!CCamera::bFreeCam)