diff options
| author | arngo <[email protected]> | 2024-05-12 17:57:33 -0400 |
|---|---|---|
| committer | arngo <[email protected]> | 2024-05-12 17:57:33 -0400 |
| commit | fe81c4b7d51d63301c4d4d89a9a8d20c4499d95a (patch) | |
| tree | 9f1e8dc459fe2af5ee2682e820face5048d52c45 | |
| parent | c649f3b0bf74804b959aa925487495d8b823f938 (diff) | |
| download | tojam2024-fe81c4b7d51d63301c4d4d89a9a8d20c4499d95a.tar.gz tojam2024-fe81c4b7d51d63301c4d4d89a9a8d20c4499d95a.zip | |
try again pt 2
| -rw-r--r-- | src/bullet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bullet.c b/src/bullet.c index 06e521d..b258f1e 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)) |
