summaryrefslogtreecommitdiffstats
path: root/src/entities
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-06-02 15:26:11 +0200
committeraap <aap@papnet.eu>2020-06-02 15:26:11 +0200
commit06c761e9acbf33e5b2709c9c3ad3419269ec2e77 (patch)
tree24deb3ecbf386ed35d0b8e338e8a07b1c53b62ea /src/entities
parentinitial CBike struct (diff)
downloadre3-06c761e9acbf33e5b2709c9c3ad3419269ec2e77.tar
re3-06c761e9acbf33e5b2709c9c3ad3419269ec2e77.tar.gz
re3-06c761e9acbf33e5b2709c9c3ad3419269ec2e77.tar.bz2
re3-06c761e9acbf33e5b2709c9c3ad3419269ec2e77.tar.lz
re3-06c761e9acbf33e5b2709c9c3ad3419269ec2e77.tar.xz
re3-06c761e9acbf33e5b2709c9c3ad3419269ec2e77.tar.zst
re3-06c761e9acbf33e5b2709c9c3ad3419269ec2e77.zip
Diffstat (limited to 'src/entities')
-rw-r--r--src/entities/Physical.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/entities/Physical.cpp b/src/entities/Physical.cpp
index f97194d0..1f62ef64 100644
--- a/src/entities/Physical.cpp
+++ b/src/entities/Physical.cpp
@@ -17,10 +17,11 @@
#include "CarCtrl.h"
#include "DMAudio.h"
#include "Automobile.h"
+#include "Bike.h"
#include "Pickups.h"
#include "Physical.h"
-//--MIAMI: file done except one bike thing
+//--MIAMI: file done
CPhysical::CPhysical(void)
{
@@ -2173,7 +2174,11 @@ CPhysical::ProcessCollision(void)
car->m_aSuspensionSpringRatio[2] = 1.0f;
car->m_aSuspensionSpringRatio[3] = 1.0f;
}else if(veh->m_vehType == VEHICLE_TYPE_BIKE){
- assert(0 && "TODO(MIAMI)");
+ CBike *bike = (CBike*)this;
+ bike->m_aSuspensionSpringRatio[0] = 1.0f;
+ bike->m_aSuspensionSpringRatio[1] = 1.0f;
+ bike->m_aSuspensionSpringRatio[2] = 1.0f;
+ bike->m_aSuspensionSpringRatio[3] = 1.0f;
}
}
}