cleanup formatted output of entity attributes

This commit is contained in:
ac-stef
2015-05-27 15:47:05 +02:00
parent aa4e6e837c
commit 2f1fc1c9c8
4 changed files with 15 additions and 9 deletions
+1 -3
View File
@@ -106,9 +106,7 @@ char *editinfo()
{
entity &c = ents[e];
int t = c.type < MAXENTTYPES ? c.type : 0;
#define AA(x) floatstr(float(c.attr##x) / entscale[t][x - 1], true)
formatstring(info)("closest entity: %s (%s, %s, %s, %s, %s, %s, %s)", entnames[t], AA(1), AA(2), AA(3), AA(4), AA(5), AA(6), AA(7));
#undef AA
formatstring(info)("closest entity: %s (%s)", entnames[t], formatentityattributes(c, true));
const char *slotinfo = "unassigned slot";
if(t == MAPMODEL)
{