map change
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
// solid cover and slicks: drive round them, they are not deadly
|
||||
for (const b of ar.blocks || []) if (Math.abs(x - b.x) < b.hw + me.st.rad && Math.abs(z - b.z) < b.hd + me.st.rad) return 1;
|
||||
for (const o of ar.oil || []) if (Math.hypot(x - o.x, z - o.z) < o.r) return 1;
|
||||
for (const mn of s.mines || []) if (mn.arm <= 0 && Math.hypot(x - mn.x, z - mn.z) < mn.r + me.st.rad) return 2;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user