summaryrefslogtreecommitdiffstats
path: root/src/core/ZoneCull.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/ZoneCull.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/ZoneCull.cpp')
-rw-r--r--src/core/ZoneCull.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}
}