summaryrefslogtreecommitdiffstats
path: root/src/vehicles/Automobile.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2019-09-12 12:11:13 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2019-09-12 12:11:13 +0200
commita3aea359b252feb83684b4b19e5fe58a5dc4e2aa (patch)
tree3ebd5b2456abbd7834ed758b7b1edb0bcafac0e1 /src/vehicles/Automobile.cpp
parentmake ATTEMPTS_TO_FIND_NEXT_NODE a define (diff)
downloadre3-a3aea359b252feb83684b4b19e5fe58a5dc4e2aa.tar
re3-a3aea359b252feb83684b4b19e5fe58a5dc4e2aa.tar.gz
re3-a3aea359b252feb83684b4b19e5fe58a5dc4e2aa.tar.bz2
re3-a3aea359b252feb83684b4b19e5fe58a5dc4e2aa.tar.lz
re3-a3aea359b252feb83684b4b19e5fe58a5dc4e2aa.tar.xz
re3-a3aea359b252feb83684b4b19e5fe58a5dc4e2aa.tar.zst
re3-a3aea359b252feb83684b4b19e5fe58a5dc4e2aa.zip
Diffstat (limited to '')
-rw-r--r--src/vehicles/Automobile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vehicles/Automobile.cpp b/src/vehicles/Automobile.cpp
index 2ec49710..67d80915 100644
--- a/src/vehicles/Automobile.cpp
+++ b/src/vehicles/Automobile.cpp
@@ -3074,7 +3074,7 @@ CAutomobile::PlaceOnRoadProperly(void)
frontZ = point.point.z;
m_pCurGroundEntity = entity;
}else{
- frontZ = field_21C;
+ frontZ = m_fMapObjectHeightAhead;
}
CVector rear(GetPosition().x - GetForward().x*lenBack,
@@ -3085,7 +3085,7 @@ CAutomobile::PlaceOnRoadProperly(void)
rearZ = point.point.z;
m_pCurGroundEntity = entity;
}else{
- rearZ = field_220;
+ rearZ = m_fMapObjectHeightBehind;
}
float len = lenFwd + lenBack;