From 0c8b5ec9a80429a88920cf0568dbc431f86567f1 Mon Sep 17 00:00:00 2001 From: Nick Winter Date: Sun, 23 Nov 2014 16:06:28 -0800 Subject: [PATCH] Turned off dead Thang underlayering when in the air. --- app/lib/surface/LayerAdapter.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/lib/surface/LayerAdapter.coffee b/app/lib/surface/LayerAdapter.coffee index 6e8fa5c93..52247b571 100644 --- a/app/lib/surface/LayerAdapter.coffee +++ b/app/lib/surface/LayerAdapter.coffee @@ -95,12 +95,12 @@ module.exports = LayerAdapter = class LayerAdapter extends CocoClass if aLank = a.lank if aThang = aLank.thang 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 if bLank = b.lank if bThang = bLank.thang bPos = bThang.pos - if bThang.health < 0 + if bThang.health < 0 and bThang.pos.z <= bThang.depth / 2 --bz if az is bz return 0 unless aPos and bPos