diff options
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/Collision.cpp | 4 | ||||
-rw-r--r-- | src/core/ZoneCull.cpp | 2 | ||||
-rw-r--r-- | src/core/main.cpp | 1 | ||||
-rw-r--r-- | src/core/main.h | 1 |
4 files changed, 5 insertions, 3 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; diff --git a/src/core/ZoneCull.cpp b/src/core/ZoneCull.cpp index 90155bcf..dc162147 100644 --- a/src/core/ZoneCull.cpp +++ b/src/core/ZoneCull.cpp @@ -186,7 +186,7 @@ CCullZones::MarkSubwayAsInvisible(bool visible) n = CPools::GetVehiclePool()->GetSize(); for(i = 0; i < n; i++){ v = CPools::GetVehiclePool()->GetSlot(i); - if(v && v->IsTrain() && ((CTrain*)v)->m_trackId != 0) + if(v && v->IsTrain() && ((CTrain*)v)->m_nTrackId != TRACK_ELTRAIN) v->bIsVisible = visible; } } diff --git a/src/core/main.cpp b/src/core/main.cpp index 04fee197..a4c4de7b 100644 --- a/src/core/main.cpp +++ b/src/core/main.cpp @@ -71,6 +71,7 @@ char version_name[64]; float FramesPerSecond = 30.0f; bool gbPrintShite = false; +bool gbModelViewer; bool DoRWStuffStartOfFrame_Horizon(int16 TopRed, int16 TopGreen, int16 TopBlue, int16 BottomRed, int16 BottomGreen, int16 BottomBlue, int16 Alpha); void DoRWStuffEndOfFrame(void); diff --git a/src/core/main.h b/src/core/main.h index 9b3c27f5..6d393066 100644 --- a/src/core/main.h +++ b/src/core/main.h @@ -18,6 +18,7 @@ extern wchar *gUString; extern wchar *gUString2; extern bool &b_FoundRecentSavedGameWantToLoad; extern bool gbPrintShite; +extern bool gbModelViewer; class CSprite2d; |