aboutsummaryrefslogtreecommitdiff
path: root/collision_system.c
diff options
context:
space:
mode:
Diffstat (limited to 'collision_system.c')
-rw-r--r--collision_system.c4
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;