mirror of
https://codeberg.org/demostf/frontend.git
synced 2026-06-03 18:24:12 +02:00
This commit is contained in:
parent
a4d835f0c6
commit
f80ae5b948
1 changed files with 1 additions and 1 deletions
|
|
@ -362,7 +362,7 @@ function unpackProjectile(bytes: Uint8Array, base: number, world: WorldBoundarie
|
||||||
const team = (((team_type >> 4) & 1) === 0) ? Team.Blue : Team.Red;
|
const team = (((team_type >> 4) & 1) === 0) ? Team.Blue : Team.Red;
|
||||||
const projectileType = ((team_type >> 5) & 7) as ProjectileType;
|
const projectileType = ((team_type >> 5) & 7) as ProjectileType;
|
||||||
const critical = bytes[base + 5] >> 7 == 1;
|
const critical = bytes[base + 5] >> 7 == 1;
|
||||||
const angle = unpack_angle(bytes[base + 5] >> 1);
|
const angle = unpack_angle(bytes[base + 5] << 1);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
position: {x, y},
|
position: {x, y},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue