diff options
author | withmorten <morten.with@gmail.com> | 2021-01-25 14:06:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-25 14:06:53 +0100 |
commit | 9d4053419b213a37e34f39a903b1226c9a6909d1 (patch) | |
tree | e18ceeaef321e70bbd8d0f8d3aa7a9a7a4deb7ff /src/control/RoadBlocks.cpp | |
parent | modelinfo and visibility plg fixes (diff) | |
parent | make building with Codewarrior 7 possible (diff) | |
download | re3-9d4053419b213a37e34f39a903b1226c9a6909d1.tar re3-9d4053419b213a37e34f39a903b1226c9a6909d1.tar.gz re3-9d4053419b213a37e34f39a903b1226c9a6909d1.tar.bz2 re3-9d4053419b213a37e34f39a903b1226c9a6909d1.tar.lz re3-9d4053419b213a37e34f39a903b1226c9a6909d1.tar.xz re3-9d4053419b213a37e34f39a903b1226c9a6909d1.tar.zst re3-9d4053419b213a37e34f39a903b1226c9a6909d1.zip |
Diffstat (limited to 'src/control/RoadBlocks.cpp')
-rw-r--r-- | src/control/RoadBlocks.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/control/RoadBlocks.cpp b/src/control/RoadBlocks.cpp index f75b4f50..4f714e80 100644 --- a/src/control/RoadBlocks.cpp +++ b/src/control/RoadBlocks.cpp @@ -55,8 +55,8 @@ CRoadBlocks::Init(void) void CRoadBlocks::GenerateRoadBlockCopsForCar(CVehicle* pVehicle, int32 roadBlockType) { - static const CVector vecRoadBlockOffets[6] = { {-1.5, 1.8f, 0.0f}, {-1.5f, -1.8f, 0.0f}, {1.5f, 1.8f, 0.0f}, - {1.5f, -1.8f, 0.0f}, {-1.5f, 0.0f, 0.0f}, {1.5, 0.0, 0.0} }; + static const CVector vecRoadBlockOffets[6] = { CVector(-1.5, 1.8f, 0.0f), CVector(-1.5f, -1.8f, 0.0f), CVector(1.5f, 1.8f, 0.0f), + CVector(1.5f, -1.8f, 0.0f), CVector(-1.5f, 0.0f, 0.0f), CVector(1.5, 0.0, 0.0) }; CEntity* pEntityToAttack = (CEntity*)FindPlayerVehicle(); if (!pEntityToAttack) pEntityToAttack = (CEntity*)FindPlayerPed(); |