summaryrefslogtreecommitdiff
path: root/openttd-git/chunnel-pre.patch
blob: 9b42f5a933fbd6cd0903e2c1a00ed93429b16d6e (plain)
1
2
3
4
5
6
7
8
9
10
11
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 &&