mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-24 00:31:34 +11:00
Fix more lints automatically
This commit is contained in:
parent
42be969c1f
commit
acb6f468e6
|
@ -761,11 +761,11 @@ impl<'a, 'b, 'c> PlayingLevel<'a, 'b> {
|
|||
|
||||
target_position.x = target_position.x.clamp(
|
||||
0,
|
||||
((self.background.level.dimensions.x * 8 - (WIDTH as u32)) as i32),
|
||||
(self.background.level.dimensions.x * 8 - (WIDTH as u32)) as i32,
|
||||
);
|
||||
target_position.y = target_position.y.clamp(
|
||||
0,
|
||||
((self.background.level.dimensions.y * 8 - (HEIGHT as u32)) as i32),
|
||||
(self.background.level.dimensions.y * 8 - (HEIGHT as u32)) as i32,
|
||||
);
|
||||
|
||||
target_position.into()
|
||||
|
|
Loading…
Reference in a new issue