summaryrefslogtreecommitdiffstats
path: root/src/entities/Physical.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-12-28 12:44:20 +0100
committerSergeanur <s.anureev@yandex.ua>2020-12-28 12:44:20 +0100
commit7eb96d53735f0f60d610d60aefdbfa4d5589c87f (patch)
treeff20bd7e6ddb5655bedecaf5ed4d404d9acfbbe7 /src/entities/Physical.cpp
parentPed: WeaponInfo: little fixes and renamings (diff)
downloadre3-7eb96d53735f0f60d610d60aefdbfa4d5589c87f.tar
re3-7eb96d53735f0f60d610d60aefdbfa4d5589c87f.tar.gz
re3-7eb96d53735f0f60d610d60aefdbfa4d5589c87f.tar.bz2
re3-7eb96d53735f0f60d610d60aefdbfa4d5589c87f.tar.lz
re3-7eb96d53735f0f60d610d60aefdbfa4d5589c87f.tar.xz
re3-7eb96d53735f0f60d610d60aefdbfa4d5589c87f.tar.zst
re3-7eb96d53735f0f60d610d60aefdbfa4d5589c87f.zip
Diffstat (limited to 'src/entities/Physical.cpp')
-rw-r--r--src/entities/Physical.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/entities/Physical.cpp b/src/entities/Physical.cpp
index 04cec96b..4fc53039 100644
--- a/src/entities/Physical.cpp
+++ b/src/entities/Physical.cpp
@@ -16,6 +16,7 @@
#include "DMAudio.h"
#include "Automobile.h"
#include "Physical.h"
+#include "Bike.h"
CPhysical::CPhysical(void)
{
@@ -1917,7 +1918,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 - but unused");
+ 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;
}
}
}