diff options
author | metamuffin <metamuffin@disroot.org> | 2025-06-03 20:00:18 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-06-03 20:00:18 +0200 |
commit | db4587d3ec64b7e28691b43f9d9701939eed94d1 (patch) | |
tree | 1005017ea4a5d4e287024eaf08f876c7e34bfbdb /pixel-client/src/game.rs | |
parent | 9ee7eef2919feffe4e0695494d4027e8ec011808 (diff) | |
download | hurrycurry-db4587d3ec64b7e28691b43f9d9701939eed94d1.tar hurrycurry-db4587d3ec64b7e28691b43f9d9701939eed94d1.tar.bz2 hurrycurry-db4587d3ec64b7e28691b43f9d9701939eed94d1.tar.zst |
update rust toolchain and rust dependencies.
`map_many_mut` and `trait_upcasting` was stabilized.
Diffstat (limited to 'pixel-client/src/game.rs')
-rw-r--r-- | pixel-client/src/game.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pixel-client/src/game.rs b/pixel-client/src/game.rs index cfac7082..e299cf09 100644 --- a/pixel-client/src/game.rs +++ b/pixel-client/src/game.rs @@ -204,7 +204,7 @@ impl Game { self.players_spatial_index.all(|p1, pos1| { self.players_spatial_index.query(pos1, 2., |p2, _pos2| { if p1 != p2 { - if let [Some(a), Some(b)] = self.players.get_many_mut([&p1, &p2]) { + if let [Some(a), Some(b)] = self.players.get_disjoint_mut([&p1, &p2]) { a.movement.collide(&mut b.movement, dt) } } |