Merge branch 'revert-eb08b6a1' into 'master'

Revert "Resolve all '#[allow(clippy::approx_constant)]' error supressions" and re-address the lint using just the PI constant

See merge request veloren/veloren!2639
This commit is contained in:
Imbris
2021-07-18 08:00:43 +00:00
93 changed files with 491 additions and 529 deletions

View File

@ -50,7 +50,6 @@ use world::util::Sampler;
use crate::{client::Client, login_provider::LoginProvider, wiring};
use scan_fmt::{scan_fmt, scan_fmt_some};
use std::f32::consts::PI;
use tracing::{error, info, warn};
pub trait ChatCommandExt {
@ -1150,7 +1149,7 @@ fn handle_spawn_airship(
let mut pos = position(server, target, "target")?;
pos.0.z += 50.0;
const DESTINATION_RADIUS: f32 = 2000.0;
let angle = angle.map(|a| a * PI / 180.0);
let angle = angle.map(|a| a * std::f32::consts::PI / 180.0);
let destination = angle.map(|a| {
pos.0
+ Vec3::new(