summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorarngo <[email protected]>2024-05-12 17:52:00 -0400
committerarngo <[email protected]>2024-05-12 17:52:00 -0400
commitf1060dd5f62a87c0076c10a89287e8a7a0defd07 (patch)
treecde4187498af83e0913bc9f67c688a318a9211bc /src
parenta88de0a1ab4bf6e254cfecc14407876fb0a32a4d (diff)
downloadtojam2024-f1060dd5f62a87c0076c10a89287e8a7a0defd07.tar.gz
tojam2024-f1060dd5f62a87c0076c10a89287e8a7a0defd07.zip
try to fix enemy position vector
Diffstat (limited to 'src')
-rw-r--r--src/bullet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bullet.c b/src/bullet.c
index 271d14a..fb8def6 100644
--- a/src/bullet.c
+++ b/src/bullet.c
@@ -72,7 +72,7 @@ bullet_collision_check(void)
bullets[i].position.x += bullets[i].direction.x * 0.25;
bullets[i].position.y += bullets[i].direction.y * 0.25;
bullets[i].position.z += bullets[i].direction.z * 0.25;
- Vector3 enemypos = world.players[bullets[i].team-1].position;
+ Vector3 enemypos = world.players[!bullets[i].team-1].position;
if (Vector3Distance(world.players[0].position, enemypos))
{
world.players[bullets[i].team-1].points++;