aboutsummaryrefslogtreecommitdiff
path: root/client/src/world/tee.rs
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/world/tee.rs')
-rw-r--r--client/src/world/tee.rs5
1 files changed, 3 insertions, 2 deletions
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;