summaryrefslogtreecommitdiffstats
path: root/src/CraftingRecipes.cpp
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-03-10 21:12:43 +0100
committerTycho <work.tycho+git@gmail.com>2014-03-10 21:12:43 +0100
commite9e2852ce1d7b3cdbbcc115d63f1d4d0ab25457f (patch)
treeff0d2625cb31699fa0e4fd28e6aacfe94ff63c8f /src/CraftingRecipes.cpp
parentFixed assert (diff)
downloadcuberite-e9e2852ce1d7b3cdbbcc115d63f1d4d0ab25457f.tar
cuberite-e9e2852ce1d7b3cdbbcc115d63f1d4d0ab25457f.tar.gz
cuberite-e9e2852ce1d7b3cdbbcc115d63f1d4d0ab25457f.tar.bz2
cuberite-e9e2852ce1d7b3cdbbcc115d63f1d4d0ab25457f.tar.lz
cuberite-e9e2852ce1d7b3cdbbcc115d63f1d4d0ab25457f.tar.xz
cuberite-e9e2852ce1d7b3cdbbcc115d63f1d4d0ab25457f.tar.zst
cuberite-e9e2852ce1d7b3cdbbcc115d63f1d4d0ab25457f.zip
Diffstat (limited to '')
-rw-r--r--src/CraftingRecipes.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/CraftingRecipes.cpp b/src/CraftingRecipes.cpp
index 868182394..be9f45caa 100644
--- a/src/CraftingRecipes.cpp
+++ b/src/CraftingRecipes.cpp
@@ -192,7 +192,9 @@ void cCraftingGrid::Dump(void)
{
for (int y = 0; y < m_Height; y++) for (int x = 0; x < m_Width; x++)
{
+ #ifdef _DEBUG
int idx = x + m_Width * y;
+ #endif
LOGD("Slot (%d, %d): Type %d, health %d, count %d",
x, y, m_Items[idx].m_ItemType, m_Items[idx].m_ItemDamage, m_Items[idx].m_ItemCount
);