summaryrefslogtreecommitdiffstats
path: root/src/entities
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-07 15:59:40 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-05-07 15:59:40 +0200
commit5780b4503eb7172a1beee05de9513374306c26ec (patch)
tree71503475e494e238d9fcb725a23f8f75e8150ea7 /src/entities
parentcar control and friends (diff)
parentMerge branch 'miami' of github.com:GTAmodding/re3 into miami (diff)
downloadre3-5780b4503eb7172a1beee05de9513374306c26ec.tar
re3-5780b4503eb7172a1beee05de9513374306c26ec.tar.gz
re3-5780b4503eb7172a1beee05de9513374306c26ec.tar.bz2
re3-5780b4503eb7172a1beee05de9513374306c26ec.tar.lz
re3-5780b4503eb7172a1beee05de9513374306c26ec.tar.xz
re3-5780b4503eb7172a1beee05de9513374306c26ec.tar.zst
re3-5780b4503eb7172a1beee05de9513374306c26ec.zip
Diffstat (limited to 'src/entities')
-rw-r--r--src/entities/Physical.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/entities/Physical.cpp b/src/entities/Physical.cpp
index 987cc293..22b391e8 100644
--- a/src/entities/Physical.cpp
+++ b/src/entities/Physical.cpp
@@ -317,8 +317,8 @@ int32
CPhysical::ProcessEntityCollision(CEntity *ent, CColPoint *colpoints)
{
int32 numSpheres = CCollision::ProcessColModels(
- GetMatrix(), *CModelInfo::GetModelInfo(GetModelIndex())->GetColModel(),
- ent->GetMatrix(), *CModelInfo::GetModelInfo(ent->GetModelIndex())->GetColModel(),
+ GetMatrix(), *GetColModel(),
+ ent->GetMatrix(), *ent->GetColModel(),
colpoints,
nil, nil); // No Lines allowed!
if(numSpheres > 0){
@@ -1528,7 +1528,8 @@ CPhysical::ProcessCollisionSectorList(CPtrList *lists)
if(A->GetModelIndex() == MI_RCBANDIT)
adhesion *= 0.2f;
- else if(IsBoatModel(A->GetModelIndex())){
+// TODO(MIAMI): check this
+ else if(A->IsVehicle() && ((CVehicle*)A)->IsBoat()){
if(aColPoints[i].normal.z > 0.6f){
if(CSurfaceTable::GetAdhesionGroup(aColPoints[i].surfaceB) == ADHESIVE_LOOSE)
adhesion *= 3.0f;