summaryrefslogtreecommitdiffstats
path: root/src/vehicles
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-20 19:40:36 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-05-20 19:40:36 +0200
commitf33a01e8c8db821b5c6457715f98aa8762d00167 (patch)
tree9a41c75660aac8e6dd6be8fa24e4b61fb05e0e23 /src/vehicles
parentscript revision (diff)
parentMerge remote-tracking branch 'origin/master' into miami (diff)
downloadre3-f33a01e8c8db821b5c6457715f98aa8762d00167.tar
re3-f33a01e8c8db821b5c6457715f98aa8762d00167.tar.gz
re3-f33a01e8c8db821b5c6457715f98aa8762d00167.tar.bz2
re3-f33a01e8c8db821b5c6457715f98aa8762d00167.tar.lz
re3-f33a01e8c8db821b5c6457715f98aa8762d00167.tar.xz
re3-f33a01e8c8db821b5c6457715f98aa8762d00167.tar.zst
re3-f33a01e8c8db821b5c6457715f98aa8762d00167.zip
Diffstat (limited to 'src/vehicles')
-rw-r--r--src/vehicles/Automobile.cpp2
-rw-r--r--src/vehicles/Cranes.cpp2
-rw-r--r--src/vehicles/HandlingMgr.cpp2
-rw-r--r--src/vehicles/HandlingMgr.h2
4 files changed, 7 insertions, 1 deletions
diff --git a/src/vehicles/Automobile.cpp b/src/vehicles/Automobile.cpp
index 524067ca..ae78c93e 100644
--- a/src/vehicles/Automobile.cpp
+++ b/src/vehicles/Automobile.cpp
@@ -2192,6 +2192,7 @@ CAutomobile::ProcessEntityCollision(CEntity *ent, CColPoint *colpoints)
phys->RegisterReference((CEntity**)&m_aGroundPhysical[i]);
m_aGroundOffset[i] = m_aWheelColPoints[i].point - phys->GetPosition();
+#if 0
if(phys->GetModelIndex() == MI_BODYCAST && GetStatus() == STATUS_PLAYER){
// damage body cast
float speed = m_vecMoveSpeed.MagnitudeSqr();
@@ -2208,6 +2209,7 @@ CAutomobile::ProcessEntityCollision(CEntity *ent, CColPoint *colpoints)
phys->AddToMovingList();
}
}
+#endif
}
m_nSurfaceTouched = m_aWheelColPoints[i].surfaceB;
diff --git a/src/vehicles/Cranes.cpp b/src/vehicles/Cranes.cpp
index 043f1c73..5a165c00 100644
--- a/src/vehicles/Cranes.cpp
+++ b/src/vehicles/Cranes.cpp
@@ -88,6 +88,7 @@ void CCranes::AddThisOneCrane(CEntity* pEntity)
if (pCrane->m_nAudioEntity >= 0)
DMAudio.SetEntityStatus(pCrane->m_nAudioEntity, 1);
pCrane->m_bIsTop = (MODELID_CRANE_1 != pEntity->GetModelIndex());
+#if 0
// Is this used to avoid military crane?
if (pCrane->m_bIsTop || pEntity->GetPosition().y > 0.0f) {
CObject* pHook = new CObject(MI_MAGNET, false);
@@ -100,6 +101,7 @@ void CCranes::AddThisOneCrane(CEntity* pEntity)
pCrane->SetHookMatrix();
}
else
+#endif
pCrane->m_pHook = nil;
NumCranes++;
}
diff --git a/src/vehicles/HandlingMgr.cpp b/src/vehicles/HandlingMgr.cpp
index 51e2604c..3d5d4e77 100644
--- a/src/vehicles/HandlingMgr.cpp
+++ b/src/vehicles/HandlingMgr.cpp
@@ -4,6 +4,8 @@
#include "FileMgr.h"
#include "HandlingMgr.h"
+//--MIAMI: done
+
cHandlingDataMgr mod_HandlingManager;
const char *HandlingFilename = "HANDLING.CFG";
diff --git a/src/vehicles/HandlingMgr.h b/src/vehicles/HandlingMgr.h
index 663a548a..e93f7879 100644
--- a/src/vehicles/HandlingMgr.h
+++ b/src/vehicles/HandlingMgr.h
@@ -243,7 +243,7 @@ class cHandlingDataMgr
{
float field_0; // unused it seems
public:
- float fWheelFriction;
+ float fWheelFriction; // wheel related
private:
float field_8; //
float field_C; // unused it seems