From f3ee0b0b2ddcf4484cd61aa2b33e49d9cc35779a Mon Sep 17 00:00:00 2001 From: quou Date: Sun, 7 May 2023 20:40:56 +1000 Subject: Work on random things. --- collision_system.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'collision_system.c') diff --git a/collision_system.c b/collision_system.c index 6d8368c..ca319f2 100644 --- a/collision_system.c +++ b/collision_system.c @@ -8,6 +8,7 @@ #include "fx.h" #include "game_config.h" #include "rect.h" +#include "sound.h" #include "standard.h" #include "world.h" @@ -185,7 +186,6 @@ void collision_system(World* world) { unsigned bits; CPosition* pos0, * pos1; const CCollider* col0, * col1; - const CEnemy* e0, * e1; Collision_Side side; for (i = 0; i < world->entity_count; i++) { @@ -268,7 +268,6 @@ void collision_system(World* world) { ) { continue; } pos0 = &world->positions[i]; - e0 = &world->enemies[i]; for (j = i + 1; j < world->entity_count; j++) { bits = world->bitmask[j]; @@ -278,7 +277,6 @@ void collision_system(World* world) { ) { continue; } pos1 = &world->positions[j]; - e1 = &world->enemies[j]; dx = (pos0->x - pos1->x) >> 4; dy = (pos0->y - pos1->y) >> 4; -- cgit v1.2.3-54-g00ecf