summaryrefslogtreecommitdiffhomepage
path: root/src/bullet.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bullet.c')
-rw-r--r--src/bullet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bullet.c b/src/bullet.c
index 3ba8f68..2e4157f 100644
--- a/src/bullet.c
+++ b/src/bullet.c
@@ -75,11 +75,11 @@ bullet_collision_check(void)
Vector3 enemypos;
if (bullets[i].team == 1)
{
- enemypos = world.players[0].position;
+ enemypos = world.players[1].position;
}
else if (bullets[i].team == 2)
{
- enemypos = world.players[1].position;
+ enemypos = world.players[0].position;
}
if (bullets[i].team != 0) {
if (Vector3Distance(bullets[i].position, enemypos))