mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-11 17:41:33 +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(
|
target_position.x = target_position.x.clamp(
|
||||||
0,
|
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(
|
target_position.y = target_position.y.clamp(
|
||||||
0,
|
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()
|
target_position.into()
|
||||||
|
|
Loading…
Reference in a new issue