From f5d52661b6d273e42423f2dc987b88dd0c26dbc4 Mon Sep 17 00:00:00 2001 From: simon Date: Mon, 26 Apr 2010 15:40:08 +0200 Subject: [PATCH] Display is a bit better --- examples/creaturedump.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/examples/creaturedump.cpp b/examples/creaturedump.cpp index fa8fb6fcb..51fe9b40f 100644 --- a/examples/creaturedump.cpp +++ b/examples/creaturedump.cpp @@ -276,14 +276,11 @@ void printCreature(DFHack::API & DF, const DFHack::t_creature & creature) case 57: maintype = (char*)"cloth"; break; - case -1: - maintype = (char*)"bones/shell"; - break; default: - maintype = (char*)"????"; + maintype = (char*)"unknown"; break; } - printf("\t%s\t%d %d - %.8x\n", maintype, mat[i].typeB, mat[i].typeC, mat[i].flags); + printf("\t%s(%d)\t%d %d - %.8x\n", maintype, mat[i].typeA, mat[i].typeB, mat[i].typeC, mat[i].flags); } } }