summaryrefslogtreecommitdiff
path: root/src/control/RoadBlocks.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-30 20:09:58 +0300
committerNikolay Korolev <nickvnuk@gmail.com>2020-05-30 20:09:58 +0300
commit49a897c3b3371ed59ea314a0359f3ed989f191e9 (patch)
treec607baa0208324c359f8365409de0eeff687087f /src/control/RoadBlocks.cpp
parent09c9e16cb122f2939f60be7565712324897bd5f9 (diff)
better name
Diffstat (limited to 'src/control/RoadBlocks.cpp')
-rw-r--r--src/control/RoadBlocks.cpp8
1 files changed, 4 insertions, 4 deletions
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(