Add another depth check.

master
Duane Robertson 2017-07-13 01:07:43 -05:00
parent 4dc9334927
commit a6b847bb75
1 changed files with 286 additions and 280 deletions

View File

@ -210,6 +210,12 @@ loud_walking.terrain = function(minp, maxp, data, p2data, area, baseline, height
return
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
loud_walking.csize = vector.add(vector.subtract(maxp, minp), 1)