summaryrefslogtreecommitdiffstats
path: root/src/control/RoadBlocks.cpp
diff options
context:
space:
mode:
authorwithmorten <morten.with@gmail.com>2021-01-25 14:06:53 +0100
committerGitHub <noreply@github.com>2021-01-25 14:06:53 +0100
commit9d4053419b213a37e34f39a903b1226c9a6909d1 (patch)
treee18ceeaef321e70bbd8d0f8d3aa7a9a7a4deb7ff /src/control/RoadBlocks.cpp
parentmodelinfo and visibility plg fixes (diff)
parentmake building with Codewarrior 7 possible (diff)
downloadre3-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.cpp4
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();