summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2024-05-12 17:50:51 -0400
committerrealtradam <[email protected]>2024-05-12 17:50:51 -0400
commit9bd7b679ba010b31ec01424289200c3d138a8793 (patch)
tree6991a14c09e45430da4c9f3e37782b1e3e9a0de0
parent0366c7069fb441b42692d07d7d3e024fe330d666 (diff)
parentf1060dd5f62a87c0076c10a89287e8a7a0defd07 (diff)
downloadtojam2024-9bd7b679ba010b31ec01424289200c3d138a8793.tar.gz
tojam2024-9bd7b679ba010b31ec01424289200c3d138a8793.zip
Merge branch 'master' of github.com:realtradam/tojam2024
-rw-r--r--src/bullet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bullet.c b/src/bullet.c
index 38cfe1e..b5afab4 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++;