mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Check for the vehicle owner
This commit is contained in:
parent
4bec5cef01
commit
94aaeac194
1 changed files with 5 additions and 0 deletions
|
@ -370,6 +370,11 @@ void VehicleTurretGun::P_UserAim(usercmd_t *ucmd)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!m_pVehicleOwner) {
|
||||||
|
// Added in OPM
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!m_pVehicleOwner->IsSubclassOfVehicle()) {
|
if (!m_pVehicleOwner->IsSubclassOfVehicle()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue