diff options
author | metamuffin <yvchraiqi@protonmail.com> | 2022-06-09 18:38:42 +0200 |
---|---|---|
committer | metamuffin <yvchraiqi@protonmail.com> | 2022-06-09 18:38:42 +0200 |
commit | 96e2ffc5f1ce1ff6163fc7fa31d51a6c36a9c0d5 (patch) | |
tree | 49c5aebcedd151bfb7517e83d49ab83af75b494e /client/src/world/tee.rs | |
parent | f74ac9e9ed20d3958e180e8fc7fd328fcdfbbbec (diff) | |
download | twclient-96e2ffc5f1ce1ff6163fc7fa31d51a6c36a9c0d5.tar twclient-96e2ffc5f1ce1ff6163fc7fa31d51a6c36a9c0d5.tar.bz2 twclient-96e2ffc5f1ce1ff6163fc7fa31d51a6c36a9c0d5.tar.zst |
sdkljhfgjkhsdfgkjlhsgdf
Diffstat (limited to 'client/src/world/tee.rs')
-rw-r--r-- | client/src/world/tee.rs | 5 |
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; |