forked from Maxluli/RustyPropagation
Fixed an inefficiency that I dont even want to talk about...
This commit is contained in:
+2
-2
@@ -168,7 +168,8 @@ impl Population{
|
|||||||
// ###
|
// ###
|
||||||
// ##@
|
// ##@
|
||||||
}
|
}
|
||||||
for infected_position in &people_to_infect{
|
};
|
||||||
|
for infected_position in &people_to_infect{
|
||||||
//people_to_infect.iter().map(|infected_position|{
|
//people_to_infect.iter().map(|infected_position|{
|
||||||
let infected_index = human_idx(infected_position.x as i32, infected_position.y as i32, self.width as i32);
|
let infected_index = human_idx(infected_position.x as i32, infected_position.y as i32, self.width as i32);
|
||||||
//DEBUG
|
//DEBUG
|
||||||
@@ -191,7 +192,6 @@ impl Population{
|
|||||||
//DEBUG
|
//DEBUG
|
||||||
//println!("Killed someone");
|
//println!("Killed someone");
|
||||||
};
|
};
|
||||||
};
|
|
||||||
stats
|
stats
|
||||||
}
|
}
|
||||||
pub fn roll(&self,probability:u32)->bool{
|
pub fn roll(&self,probability:u32)->bool{
|
||||||
|
|||||||
Reference in New Issue
Block a user