From 96e2ffc5f1ce1ff6163fc7fa31d51a6c36a9c0d5 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Thu, 9 Jun 2022 18:38:42 +0200 Subject: sdkljhfgjkhsdfgkjlhsgdf --- client/src/world/tee.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'client/src/world/tee.rs') diff --git a/client/src/world/tee.rs b/client/src/world/tee.rs index 5458fe6..6b33f48 100644 --- a/client/src/world/tee.rs +++ b/client/src/world/tee.rs @@ -1,4 +1,4 @@ -use std::collections::BTreeMap; +use std::{collections::BTreeMap, f32::consts::PI}; use super::helper::Color; use crate::client::ClientMesgOut; @@ -28,7 +28,7 @@ pub struct Tee { pub attack_tick: i32, pub tick: i32, - pub angle: i32, + pub angle: f32, pub x: i32, pub y: i32, pub vel_x: i32, @@ -126,6 +126,7 @@ impl Tees { e.x = c.character_core.x; e.y = c.character_core.y; + e.angle = c.character_core.angle as f32 / 1600.0 * 2.0 * PI; e.vel_x = c.character_core.vel_x; e.vel_y = c.character_core.vel_y; -- cgit v1.2.3-70-g09d2