diff options
author | quou <quou@disroot.org> | 2023-05-07 20:40:56 +1000 |
---|---|---|
committer | quou <quou@disroot.org> | 2023-05-07 20:40:56 +1000 |
commit | f3ee0b0b2ddcf4484cd61aa2b33e49d9cc35779a (patch) | |
tree | c5a58cc00741e82de16e66e7e12a380a3f16a841 /collision_system.c | |
parent | 97e79598aa3fbbf7e7b69894964ccb232dfc0347 (diff) |
Work on random things.
Diffstat (limited to 'collision_system.c')
-rw-r--r-- | collision_system.c | 4 |
1 files changed, 1 insertions, 3 deletions
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; |