Add another depth check.
parent
4dc9334927
commit
a6b847bb75
|
@ -210,6 +210,12 @@ loud_walking.terrain = function(minp, maxp, data, p2data, area, baseline, height
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local extent_bottom = loud_walking.extent_bottom
|
||||||
|
local extent_top = loud_walking.extent_top
|
||||||
|
if maxp.y < baseline + extent_bottom or minp.y > baseline + extent_top then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
if not loud_walking.csize then
|
if not loud_walking.csize then
|
||||||
loud_walking.csize = vector.add(vector.subtract(maxp, minp), 1)
|
loud_walking.csize = vector.add(vector.subtract(maxp, minp), 1)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue