implemented CTrain

This commit is contained in:
aap 2019-07-29 19:18:03 +02:00
commit 5f6b235301
15 changed files with 941 additions and 97 deletions

View file

@ -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;