forked from Maxluli/RustyPropagation
remove unused code
This commit is contained in:
+1
-15
@@ -199,26 +199,12 @@ impl Population {
|
|||||||
x: pos.x + 1,
|
x: pos.x + 1,
|
||||||
y: pos.y + 1,
|
y: pos.y + 1,
|
||||||
},
|
},
|
||||||
);
|
); //Bottom Right
|
||||||
if infected {
|
if infected {
|
||||||
people_to_infect.push(Point { x: pos.x, y: pos.y });
|
people_to_infect.push(Point { x: pos.x, y: pos.y });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// ); //Bottom Right
|
|
||||||
// for poss_infected_pos in possible_infections.iter() {
|
|
||||||
// //possible_infections.iter().map(|poss_infected_pos|{
|
|
||||||
// let inf_idx =
|
|
||||||
// human_idx(poss_infected_pos.x, poss_infected_pos.y, self.width);
|
|
||||||
// if self.humans[inf_idx].present_state == State::Normal {
|
|
||||||
// if roll(self.plague.infection_rate) {
|
|
||||||
// people_to_infect.push(Point {
|
|
||||||
// x: poss_infected_pos.x,
|
|
||||||
// y: poss_infected_pos.y,
|
|
||||||
// });
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
for infected_position in people_to_infect.iter() {
|
for infected_position in people_to_infect.iter() {
|
||||||
// println!("To infect: {:?}", infected_position);
|
// println!("To infect: {:?}", infected_position);
|
||||||
|
|||||||
Reference in New Issue
Block a user