fix projectile angle
All checks were successful
CI / checks (push) Successful in 1m5s

This commit is contained in:
Robin Appelman 2025-06-26 23:33:51 +02:00
commit f80ae5b948

View file

@ -362,7 +362,7 @@ function unpackProjectile(bytes: Uint8Array, base: number, world: WorldBoundarie
const team = (((team_type >> 4) & 1) === 0) ? Team.Blue : Team.Red;
const projectileType = ((team_type >> 5) & 7) as ProjectileType;
const critical = bytes[base + 5] >> 7 == 1;
const angle = unpack_angle(bytes[base + 5] >> 1);
const angle = unpack_angle(bytes[base + 5] << 1);
return {
position: {x, y},