~starkingdoms/starkingdoms

7f68f2d66cc72a7e23e1dfd876b910018a5f0226 — core 2 years ago 16d7cf7
use better math
1 files changed, 1 insertions(+), 1 deletions(-)

M client/src/gateway.ts
M client/src/gateway.ts => client/src/gateway.ts +1 -1
@@ 158,7 158,7 @@ export async function gateway_connect(gateway_url: string, username: string): Pr
                            global.velocity = total_vel;

                            // calc theta
                            global.direction_radians = Math.atan(global.y_vel / global.x_vel);
                            global.direction_radians = Math.atan2(global.y_vel, global.x_vel);
                        }

                        global.me = pkt.players[i];