From 15f3d1c8385ac7cc2ed3c04bb1e1fb919ba169d1 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sat, 25 Sep 2021 14:12:30 -0400 Subject: char: Remove old collision functions --- (limited to 'src/char/char.c') diff --git a/src/char/char.c b/src/char/char.c index 4a4a4e7..0ab7145 100644 --- a/src/char/char.c +++ b/src/char/char.c @@ -126,24 +126,6 @@ mf_char_update(struct mf_char *c) } int -mf_char_collision(struct mf_char *c1, struct mf_char *c2, int handle) -{ - if (c1->cur_x == c2->cur_x && c1->cur_y == c2->cur_y) goto hit; - if (c1->cur_x == c2->new_x && c1->cur_y == c2->new_y) goto hit; - if (c1->new_x == c2->cur_x && c1->new_y == c2->cur_y) goto hit; - if (c1->new_x == c2->new_x && c1->new_y == c2->new_y) goto hit; - - return 0; - - hit: - if (handle == SDL_TRUE) { - c1->collide(c1); - c2->collide(c2); - } - return 1; -} - -int mf_char_render(struct mf_char *c, SDL_Renderer *renderer) { int e = 0; -- cgit v0.9.1