From 9330c75f9ad159f7695e0e890e0ec07f3b12b260 Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Sat, 14 Mar 2015 04:09:39 +0100
Subject: [PATCH] Fix bug in standing_on_food() (returned True on items in
 inventory).

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

diff --git a/roguelike-server b/roguelike-server
index b72b9f5..c5b50db 100755
--- a/roguelike-server
+++ b/roguelike-server
@@ -1300,6 +1300,7 @@ def get_dir_to_target(t, filter):
 def standing_on_food(t):
     """Return True/False whether t is standing on a consumable."""
     for id in [id for id in world_db["Things"] if world_db["Things"][id] != t
+               if not world_db["Things"][id]["carried"]
                if world_db["Things"][id]["T_POSY"] == t["T_POSY"]
                if world_db["Things"][id]["T_POSX"] == t["T_POSX"]
                if world_db["ThingTypes"][world_db["Things"][id]["T_TYPE"]]
-- 
2.30.2