From 49a897c3b3371ed59ea314a0359f3ed989f191e9 Mon Sep 17 00:00:00 2001 From: Nikolay Korolev Date: Sat, 30 May 2020 20:09:58 +0300 Subject: better name --- src/control/RoadBlocks.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/control/RoadBlocks.cpp') diff --git a/src/control/RoadBlocks.cpp b/src/control/RoadBlocks.cpp index 67847cf9..5d466be2 100644 --- a/src/control/RoadBlocks.cpp +++ b/src/control/RoadBlocks.cpp @@ -131,11 +131,11 @@ CRoadBlocks::GenerateRoadBlocks(void) forward.Normalise(); if (ThePaths.m_pathNodes[node].HasDivider()) { CreateRoadBlockBetween2Points( - ThePaths.m_pathNodes[node].GetPosition() + (length * 0.5f + ThePaths.m_pathNodes[node].GetDivider()) * forward, - ThePaths.m_pathNodes[node].GetPosition() + ThePaths.m_pathNodes[node].GetDivider() * forward); + ThePaths.m_pathNodes[node].GetPosition() + (length * 0.5f + ThePaths.m_pathNodes[node].GetDividerWidth()) * forward, + ThePaths.m_pathNodes[node].GetPosition() + ThePaths.m_pathNodes[node].GetDividerWidth() * forward); CreateRoadBlockBetween2Points( - ThePaths.m_pathNodes[node].GetPosition() - ThePaths.m_pathNodes[node].GetDivider() * forward, - ThePaths.m_pathNodes[node].GetPosition() - (length * 0.5f + ThePaths.m_pathNodes[node].GetDivider()) * forward); + ThePaths.m_pathNodes[node].GetPosition() - ThePaths.m_pathNodes[node].GetDividerWidth() * forward, + ThePaths.m_pathNodes[node].GetPosition() - (length * 0.5f + ThePaths.m_pathNodes[node].GetDividerWidth()) * forward); } else { CreateRoadBlockBetween2Points( -- cgit v1.2.3