Removed commented code

This commit is contained in:
Sam 2020-08-06 10:15:24 -05:00
parent 83a6e08c7a
commit 3b1163fa50
4 changed files with 4 additions and 5 deletions

View File

@ -149,7 +149,6 @@ impl Body {
Body::Golem(_) => 5.0,
Body::QuadrupedLow(_) => 0.5,
Body::Object(_) => 0.6,
// _ => 0.5,
}
}

View File

@ -1,5 +1,5 @@
use crate::{
comp::{Attacking, CharacterState, EnergySource, StateUpdate},
comp::{Attacking, CharacterState, StateUpdate},
states::utils::*,
sys::character_behavior::*,
};

View File

@ -1,5 +1,5 @@
use crate::{
comp::{Attacking, CharacterState, EnergySource, StateUpdate},
comp::{Attacking, CharacterState, StateUpdate},
states::utils::*,
sys::character_behavior::*,
};

View File

@ -70,6 +70,8 @@ impl CharacterBehavior for Data {
fn behavior(&self, data: &JoinData) -> StateUpdate {
let mut update = StateUpdate::from(data);
handle_move(data, &mut update, 0.3);
#[allow(clippy::or_fun_call)] // TODO: Pending review in #587
let stage_time_active = self
.stage_time_active
@ -126,8 +128,6 @@ impl CharacterBehavior for Data {
update.vel.0 = update.vel.0.normalized() * BASE_SPEED;
}
};
// update.vel.0 = Vec3::new(data.inputs.move_dir.x,
// data.inputs.move_dir.y, 0.0) * 5.0;
} else {
handle_orientation(data, &mut update, 50.0);
}