summaryrefslogtreecommitdiff
path: root/openttd-git/chunnel-pre.patch
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2021-01-03 22:08:37 +0100
committerErich Eckner <git@eckner.net>2021-01-03 22:08:37 +0100
commit14db446f7428ae55907b15b10e89539a7eefc6ab (patch)
treeca770ea23c6697178366c7751a0ceded3723e428 /openttd-git/chunnel-pre.patch
parenteda62ccedb226e760a41bf0f5af379b0add6b072 (diff)
downloadarchlinuxewe.git.save-14db446f7428ae55907b15b10e89539a7eefc6ab.tar.xz
openttd-git: fix chunnel.patch
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 &&