mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Remove warnings
This commit is contained in:
parent
512d2d9a8e
commit
952ec35857
@ -15,8 +15,6 @@ pub const ROLL_DURATION: Duration = Duration::from_millis(600);
|
||||
|
||||
const HUMANOID_ACCEL: f32 = 70.0;
|
||||
const HUMANOID_SPEED: f32 = 120.0;
|
||||
const WIELD_ACCEL: f32 = 70.0;
|
||||
const WIELD_SPEED: f32 = 120.0;
|
||||
const HUMANOID_AIR_ACCEL: f32 = 10.0;
|
||||
const HUMANOID_AIR_SPEED: f32 = 100.0;
|
||||
const ROLL_SPEED: f32 = 13.0;
|
||||
|
@ -273,9 +273,7 @@ impl<'a> System<'a> for Sys {
|
||||
}
|
||||
|
||||
// Apply pushback
|
||||
for (pos, scale, mut vel, _) in
|
||||
(&positions, scales.maybe(), &mut velocities, &bodies).join()
|
||||
{
|
||||
for (pos, scale, vel, _) in (&positions, scales.maybe(), &mut velocities, &bodies).join() {
|
||||
let scale = scale.map(|s| s.0).unwrap_or(1.0);
|
||||
for (pos_other, scale_other, _) in (&positions, scales.maybe(), &bodies).join() {
|
||||
let scale_other = scale_other.map(|s| s.0).unwrap_or(1.0);
|
||||
|
@ -10,8 +10,6 @@ use common::{
|
||||
msg::ServerMsg,
|
||||
npc::{get_npc_name, NpcKind},
|
||||
state::TimeOfDay,
|
||||
terrain::TerrainChunkSize,
|
||||
vol::VolSize,
|
||||
};
|
||||
use rand::Rng;
|
||||
use specs::{Builder, Entity as EcsEntity, Join};
|
||||
|
@ -145,7 +145,6 @@ impl Scene {
|
||||
.figure_model_cache
|
||||
.get_or_create_model(
|
||||
renderer,
|
||||
&client.entity(),
|
||||
Body::Humanoid(body),
|
||||
Some(equipment),
|
||||
client.get_tick(),
|
||||
|
@ -48,7 +48,6 @@ impl FigureModelCache {
|
||||
pub fn get_or_create_model(
|
||||
&mut self,
|
||||
renderer: &mut Renderer,
|
||||
entity: &EcsEntity,
|
||||
body: Body,
|
||||
equipment: Option<&Equipment>,
|
||||
tick: u64,
|
||||
@ -675,7 +674,7 @@ impl FigureMgr {
|
||||
|
||||
let skeleton_attr = &self
|
||||
.model_cache
|
||||
.get_or_create_model(renderer, &entity, *body, stats.map(|s| &s.equipment), tick)
|
||||
.get_or_create_model(renderer, *body, stats.map(|s| &s.equipment), tick)
|
||||
.1;
|
||||
|
||||
match body {
|
||||
@ -928,13 +927,7 @@ impl FigureMgr {
|
||||
} {
|
||||
let model = &self
|
||||
.model_cache
|
||||
.get_or_create_model(
|
||||
renderer,
|
||||
&entity,
|
||||
*body,
|
||||
stats.map(|s| &s.equipment),
|
||||
tick,
|
||||
)
|
||||
.get_or_create_model(renderer, *body, stats.map(|s| &s.equipment), tick)
|
||||
.0;
|
||||
|
||||
// Don't render the player's body while in first person mode
|
||||
|
Loading…
Reference in New Issue
Block a user