diff options
author | withmorten <morten.with@gmail.com> | 2021-01-21 21:55:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-21 21:55:33 +0100 |
commit | ef24783bff1dc74a846966660005cfefe23d48a2 (patch) | |
tree | b123f26121b59226b05bf87a36dec621890de0b3 /src/control/RoadBlocks.cpp | |
parent | update librw (diff) | |
parent | codewarrior: finishing touches (diff) | |
download | re3-ef24783bff1dc74a846966660005cfefe23d48a2.tar re3-ef24783bff1dc74a846966660005cfefe23d48a2.tar.gz re3-ef24783bff1dc74a846966660005cfefe23d48a2.tar.bz2 re3-ef24783bff1dc74a846966660005cfefe23d48a2.tar.lz re3-ef24783bff1dc74a846966660005cfefe23d48a2.tar.xz re3-ef24783bff1dc74a846966660005cfefe23d48a2.tar.zst re3-ef24783bff1dc74a846966660005cfefe23d48a2.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 170c5ff8..3ec34a57 100644 --- a/src/control/RoadBlocks.cpp +++ b/src/control/RoadBlocks.cpp @@ -46,8 +46,8 @@ CRoadBlocks::Init(void) void CRoadBlocks::GenerateRoadBlockCopsForCar(CVehicle* pVehicle, int32 roadBlockType, int16 roadBlockNode) { - 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(); |