Turned off dead Thang underlayering when in the air.

This commit is contained in:
Nick Winter 2014-11-23 16:06:28 -08:00
parent 1535b6bdd2
commit 0c8b5ec9a8

View file

@ -95,12 +95,12 @@ module.exports = LayerAdapter = class LayerAdapter extends CocoClass
if aLank = a.lank if aLank = a.lank
if aThang = aLank.thang if aThang = aLank.thang
aPos = aThang.pos aPos = aThang.pos
if aThang.health < 0 if aThang.health < 0 and aThang.pos.z <= aThang.depth / 2 # Nice for not being knee deep in the dead, but not nice for ogres flying behind trees
--az --az
if bLank = b.lank if bLank = b.lank
if bThang = bLank.thang if bThang = bLank.thang
bPos = bThang.pos bPos = bThang.pos
if bThang.health < 0 if bThang.health < 0 and bThang.pos.z <= bThang.depth / 2
--bz --bz
if az is bz if az is bz
return 0 unless aPos and bPos return 0 unless aPos and bPos