im stupid
Some checks failed
Linux arm64 / Build (push) Failing after 4m30s

This commit is contained in:
2024-03-26 10:42:18 +01:00
parent fdc0d69605
commit 42a37abe45

View File

@@ -51,11 +51,11 @@ void ServerGame::CheckShoot(game::PlayerID shooter, Vec3f position, float yaw, f
for (auto& [playerId, player] : GetPlayers()) {
if (playerId != shooter && maths::Intersects(shootRay, playerStaticAABB + player.GetPosition())) {
DamagePlayer(player, *shooterPlayer);
if (!shootLanded) {
shootLanded = true;
shooterPlayer->GetStats().m_ShootSuccessCount++;
}
DamagePlayer(player, *shooterPlayer);
}
}
}