From 78431782fa8cfd7131044419d7a6d7b9718eb31f Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Sat, 14 Mar 2015 06:36:16 +0100
Subject: [PATCH] get_inventory_slot_to_consume(t): Eat anything if deep in the
 red.

---
 roguelike-server | 1 +
 1 file changed, 1 insertion(+)

diff --git a/roguelike-server b/roguelike-server
index 63fd016..2a987fd 100755
--- a/roguelike-server
+++ b/roguelike-server
@@ -1305,6 +1305,7 @@ def get_inventory_slot_to_consume(t):
             nutvalue = world_db["ThingTypes"][type]["TT_TOOLPOWER"]
             tmp_cmp = abs(t["T_SATIATION"] + nutvalue - consume_hungering)
             if (cmp_food < 0 and tmp_cmp < abs(t["T_SATIATION"])) \
+            or (cmp_food < 0 and 0 > t["T_SATIATION"] + nutvalue) \
             or tmp_cmp < cmp_food:
                 cmp_food = tmp_cmp
                 selection = i
-- 
2.30.2