diff options
author | aap <aap@papnet.eu> | 2020-06-02 23:34:53 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-06-02 23:34:53 +0200 |
commit | 04a91761df7c90ed16b37407d65d8674033efd3f (patch) | |
tree | a5df11d9e0afee0c6ca376a214fd6cbdc65f58cf /src/core/Cam.cpp | |
parent | 575c5466dfb3d0d0cdaa47a03b601e4f23f6af94 (diff) |
some vehicle cleanup
Diffstat (limited to 'src/core/Cam.cpp')
-rw-r--r-- | src/core/Cam.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/Cam.cpp b/src/core/Cam.cpp index 60145cd0..53c49634 100644 --- a/src/core/Cam.cpp +++ b/src/core/Cam.cpp @@ -5,6 +5,7 @@ #include "World.h" #include "Vehicle.h" #include "Automobile.h" +#include "Boat.h" #include "Ped.h" #include "PlayerPed.h" #include "CopPed.h" @@ -2732,7 +2733,7 @@ CCam::Process_1stPerson(const CVector &CameraTarget, float TargetOrientation, fl }else{ assert(CamTargetEntity->IsVehicle()); CVehicleModelInfo *mi = (CVehicleModelInfo*)CModelInfo::GetModelInfo(CamTargetEntity->GetModelIndex()); - CVector CamPos = mi->m_vehicleType == VEHICLE_TYPE_BOAT ? mi->m_positions[BOAT_POS_FRONTSEAT] : mi->m_positions[CAR_POS_FRONTSEAT]; + CVector CamPos = mi->GetFrontSeatPosn(); CamPos.x = 0.0f; CamPos.y += -0.08f; CamPos.z += 0.62f; |