summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2021-08-10 02:17:09 (EDT)
committer P. J. McDermott <pj@pehjota.net>2021-08-18 11:38:43 (EDT)
commit459c30627d9a2192d0f79280efaafc1d3a737be5 (patch)
tree905220792602b68728580cf732409485b024a63d /src
parent3e619979dafa64c6b2576420ff1ce59462256d5e (diff)
downloadmazefight-459c30627d9a2192d0f79280efaafc1d3a737be5.zip
mazefight-459c30627d9a2192d0f79280efaafc1d3a737be5.tar.gz
mazefight-459c30627d9a2192d0f79280efaafc1d3a737be5.tar.bz2
char/char: Add debugging info
Diffstat (limited to 'src')
-rw-r--r--src/char/char.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/char/char.c b/src/char/char.c
index 4a4a4e7..76b8e22 100644
--- a/src/char/char.c
+++ b/src/char/char.c
@@ -140,6 +140,9 @@ mf_char_collision(struct mf_char *c1, struct mf_char *c2, int handle)
c1->collide(c1);
c2->collide(c2);
}
+ SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION,
+ "Collision: (%d,%d) x (%d,%d)",
+ c1->cur_x, c1->cur_y, c2->cur_x, c2->cur_y);
return 1;
}