diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2019-09-14 19:54:56 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2019-09-14 19:54:56 +0200 |
commit | 84186e7b0f15cba33243eab6f15516d3a450b839 (patch) | |
tree | a8dfa4f8ceb65436ab80c1f7ab5aa24f7798dd3c /src/vehicles/Automobile.cpp | |
parent | Merge pull request #206 from erorcun/erorcun (diff) | |
parent | more CCarCtrl (diff) | |
download | re3-84186e7b0f15cba33243eab6f15516d3a450b839.tar re3-84186e7b0f15cba33243eab6f15516d3a450b839.tar.gz re3-84186e7b0f15cba33243eab6f15516d3a450b839.tar.bz2 re3-84186e7b0f15cba33243eab6f15516d3a450b839.tar.lz re3-84186e7b0f15cba33243eab6f15516d3a450b839.tar.xz re3-84186e7b0f15cba33243eab6f15516d3a450b839.tar.zst re3-84186e7b0f15cba33243eab6f15516d3a450b839.zip |
Diffstat (limited to 'src/vehicles/Automobile.cpp')
-rw-r--r-- | src/vehicles/Automobile.cpp | 4 |
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; |