Fix a clippy warning, complete section 5.6
This commit is contained in:
parent
b5bf24a3aa
commit
3c36ee7fd3
@ -58,8 +58,7 @@ pub fn try_move_player(delta_x: i32, delta_y: i32, ecs: &mut World) {
|
||||
let mut ppos = ecs.write_resource::<Point>();
|
||||
ppos.x = pos.x;
|
||||
ppos.y = pos.y
|
||||
} else {
|
||||
if combat_stats.get(*potential_target).is_some() {
|
||||
} else if combat_stats.get(*potential_target).is_some() {
|
||||
wants_to_melee
|
||||
.insert(
|
||||
entity,
|
||||
@ -70,7 +69,6 @@ pub fn try_move_player(delta_x: i32, delta_y: i32, ecs: &mut World) {
|
||||
.expect("Add target failed");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if let Some(door) = doors.get_mut(*potential_target) {
|
||||
door.open = true;
|
||||
|
Loading…
Reference in New Issue
Block a user