summaryrefslogtreecommitdiffstats
path: root/src/core/Collision.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-07-29 19:18:03 +0200
committeraap <aap@papnet.eu>2019-07-31 14:33:27 +0200
commit5f6b235301f734b73f8307cf3e29997e7f76eac8 (patch)
tree73037842a302ae6e888e365b32e8ce74287e3f8d /src/core/Collision.cpp
parentMerge pull request #175 from erorcun/erorcun (diff)
parentrestore original shadows fading (diff)
downloadre3-5f6b235301f734b73f8307cf3e29997e7f76eac8.tar
re3-5f6b235301f734b73f8307cf3e29997e7f76eac8.tar.gz
re3-5f6b235301f734b73f8307cf3e29997e7f76eac8.tar.bz2
re3-5f6b235301f734b73f8307cf3e29997e7f76eac8.tar.lz
re3-5f6b235301f734b73f8307cf3e29997e7f76eac8.tar.xz
re3-5f6b235301f734b73f8307cf3e29997e7f76eac8.tar.zst
re3-5f6b235301f734b73f8307cf3e29997e7f76eac8.zip
Diffstat (limited to 'src/core/Collision.cpp')
-rw-r--r--src/core/Collision.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/Collision.cpp b/src/core/Collision.cpp
index cc360f79..df1dcd63 100644
--- a/src/core/Collision.cpp
+++ b/src/core/Collision.cpp
@@ -142,8 +142,8 @@ CCollision::LoadCollisionWhenINeedIt(bool forceChange)
veh = FindPlayerVehicle();
if(veh && veh->IsTrain()){
- if(((CTrain*)veh)->m_doorState != TRAIN_DOOR_STATE2)
- return ;
+ if(((CTrain*)veh)->m_nDoorState != TRAIN_DOOR_OPEN)
+ return;
}else if(playerCoors.z < 4.0f && !CCullZones::DoINeedToLoadCollision())
return;