better output

This commit is contained in:
David Rose 2007-06-16 01:22:39 +00:00
parent 3b528350bb
commit 35f5b897bf
1 changed files with 16 additions and 1 deletions

View File

@ -193,7 +193,22 @@ any_in_bounds() {
collide_cat.spam();
indent(collide_cat.spam(false), indent_level)
<< _node_path.get_node_path() << " has " << num_active_colliders
<< " interested colliders.\n";
<< " interested colliders";
if (num_colliders != 0) {
collide_cat.spam(false)
<< " (";
for (int c = 0; c < num_colliders; c++) {
if (has_collider(c)) {
CollisionNode *cnode = get_collider_node(c);
collide_cat.spam(false)
<< " " << c << ". " << cnode->get_name();
}
}
collide_cat.spam(false)
<< " )";
}
collide_cat.spam(false)
<< "\n";
}
#endif // NDEBUG
return has_any_collider();