diff options
| author | arngo <[email protected]> | 2024-05-12 17:52:00 -0400 |
|---|---|---|
| committer | arngo <[email protected]> | 2024-05-12 17:52:00 -0400 |
| commit | f1060dd5f62a87c0076c10a89287e8a7a0defd07 (patch) | |
| tree | cde4187498af83e0913bc9f67c688a318a9211bc | |
| parent | a88de0a1ab4bf6e254cfecc14407876fb0a32a4d (diff) | |
| download | tojam2024-f1060dd5f62a87c0076c10a89287e8a7a0defd07.tar.gz tojam2024-f1060dd5f62a87c0076c10a89287e8a7a0defd07.zip | |
try to fix enemy position vector
| -rw-r--r-- | src/bullet.c | 2 |
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++; |
