Improve hitbox determinisim and performance.

This commit is contained in:
2026-09-12 16:48:16 +02:00
parent 6e01147125
commit 50f0371b54
7 changed files with 348 additions and 57 deletions
+4 -1
View File
@@ -43,7 +43,10 @@ impl LocalInputAssignments {
}
pub fn get_from_slot(&self, slot: usize) -> Option<&LocalInputSource> {
self.0.iter().find(|(c_slot, _)| slot == *c_slot).map(|(_, source)| source)
self.0
.iter()
.find(|(c_slot, _)| slot == *c_slot)
.map(|(_, source)| source)
}
}