equal
deleted
inserted
replaced
46 |
46 |
47 #[inline] |
47 #[inline] |
48 pub fn delete_gear(&mut self, gear_id: GearId) { |
48 pub fn delete_gear(&mut self, gear_id: GearId) { |
49 self.data.remove_all(gear_id); |
49 self.data.remove_all(gear_id); |
50 self.collision.remove(gear_id); |
50 self.collision.remove(gear_id); |
51 self.time.cancel(gear_id); |
51 self.time.cancel_all(gear_id); |
52 self.allocator.free(gear_id) |
52 self.allocator.free(gear_id) |
53 } |
53 } |
54 |
54 |
55 pub fn step(&mut self, time_step: Millis, land: &Land2D<u32>) { |
55 pub fn step(&mut self, time_step: Millis, land: &Land2D<u32>) { |
56 let updates = if time_step == Millis::new(1) { |
56 let updates = if time_step == Millis::new(1) { |