summaryrefslogtreecommitdiff
path: root/openttd-git/chunnel-pre.patch
diff options
context:
space:
mode:
Diffstat (limited to 'openttd-git/chunnel-pre.patch')
-rw-r--r--openttd-git/chunnel-pre.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/openttd-git/chunnel-pre.patch b/openttd-git/chunnel-pre.patch
new file mode 100644
index 00000000..9b42f5a9
--- /dev/null
+++ b/openttd-git/chunnel-pre.patch
@@ -0,0 +1,12 @@
+diff --git a/openttd-git/chunnel.patch b/openttd-git/chunnel.patch
+index 33ab7405..6ad137ae 100644
+--- a/openttd-git/chunnel.patch
++++ b/openttd-git/chunnel.patch
+@@ -1018,6 +1018,7 @@ index e014944a9f..cb6239f597 100644
+ const Vehicle *v = _vehicle_viewport_hash[x + y]; // already masked & 0xFFF
+
+ while (v != nullptr) {
++ if (LayerIndex(v->tile) == dpi->layer)
+ - if (!(v->vehstatus & VS_HIDDEN) &&
+ + if (v->IsDrawn() &&
+ l <= v->coord.right &&